Project #24827 - Linux

Using the terminal mode in Linux:

---------------------------------

- Create a Script file called lastNameFirstInitialpgm3.sh

 - Make it executable

 - In your Script file

 - Create a file called results.txt

 - Append "Your last name, first name" to the results.txt file

 - Append "OS cgs3767" to the results.txt file

 - Append "Linux script results" to the results.txt file

 - Append "Login at:" to the results.txt file

 - Append current running date and time to the results.txt file

- Implement division by 0, with error trapping, using if and while() commands,

 How:

 - Using a while loop,

 - ask the user to enter the first number

 - ask the user to enter the second number

 - Using the if statement, test that the second number in not zero, if it is inform

 the user of the error, and ask for a correct second number.

 - if the second number is NOT a zero, do the division. Display all numbers and the

 computation using labels.

 - To exit the while loop the user must enter the value 999 for the first or the second

number.

 - Display the two accepted numbers and the result of the division

 - Append the two accepted numbers and the result of the division to the results.txt file

Doing a for loop from 1 to 100,

 - Find the results of calculating each number from 1 to 100 mod 5.

 - Append each number to the results.txt file

 - After the for loop ends calculate and display the average of the results

 - Append the average of the numbers to the results.txt file

Using the terminal mode in Windows:

-----------------------------------

Using the command line at Windows 7

 - Create a batch file called lastNameFirstInitialpgm3.bat

 - In your batch file

 - Append two empty lines to the results.txt file

- Append "Windows batch results" to the results.txt file

 - Append "Login at:" to the results.txt file

 - Append current running date and time to the results.txt file

5 - Same as number 2 above BUT DONE IN WINDOWS

 

6 - Same as number 3 above BUT DONE IN WINDOWS

Subject Computer
Due By (Pacific Time) 03/12/2014 04:00 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy