Question: 2. Write a complete bash script to calculate Miles per Hour (MPH) given the distance in ft) and Time (In Seconds). The formula is: Distance

2. Write a complete bash script to calculate Miles per Hour (MPH) given the distance in ft) and Time (In Seconds). The formula is: Distance (ft) x 60 MPH = Time (seconds) 88 Your script must: a. Continue in a loop until the user decides to stop by entering 0 at the question "Do you want to continue? (1 = yes, 0 = no). b. Your result must print precisions. wa Here is an example run $ ./mph.sh Calculate Miles per Hour =============================== What is the Distance in feet? 10000 What is the time in Seconds? 2800 Miles per Hour = 2.43 Do you want to continue? (1 = yes, 0 = no) 1 Calculate Miles per Hour =============================== What is the Distance in feet? 50000 What is the time in Seconds? 3900 Miles per Hour = 8.74 Do you want to continue? (1 = yes, 0 = no) 0 Thank You. BYE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
