Question: Worth 2 points. Using Linux Shell Scripting. - Implement division by 0, with error trapping, using if and while commands, How: a) using ANY editor,

Worth 2 points. Using Linux Shell Scripting. - Implement division by 0, with error trapping, using if and while commands, How: a) using ANY editor, append to your .sh file commands that will do the following: b) Append your name, current running date and time to a NEW file called results.txt c) Using two variables: FirstNumber and LastNumber, use a while loop. d) Ask the user to enter the first number. e) Ask the user to enter the second number. f) If the user enters the value 99 for the first or the second number, you must exit this section immediately, g) If the second number is ZERO inform the user that you CAN NOT divide by ZERO, and ask for a correct second number. h) If the second number is NOT a zero, divide FirstNumber by LastNumber and display all numbers on this computation using labels, and append this output to the results.txt file. example: 4 divided by 1 = 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!