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

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) x 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. 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 SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 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

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!