Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Visualization A Practical Introduction

Authors: Kieran Healy

1st Edition

0691181624, 978-0691181622

More Books

Students also viewed these Databases questions