Question: Please, with C programming language, answer the following question: The Alr Bus planes travel at the speed of 950 km/h. Write a function calc_time to

Please, with C programming language, answer the following question:

Please, with C programming language, answer the following question: The Alr Bus

The Alr Bus planes travel at the speed of 950 km/h. Write a function calc_time to calculate how many hours an Air Bus plane will take to fly for a user given distance (in kilometer). The program needs to get the distance from the user and output the hour that the plane will fly. The program can accept many distances unless the user Input a negative distance. The main() function is responsible for reading the distances and displaying the travel time. The "main" function calls the "calc_time() function to calculate the travel time for a given distance. The following is a sample run of the program. (The gray font indicates the data that the user enters from the keyboard) Please enter a distance: 950 The plane will take 1.000h to fly. Please enter a distance: 1200 The plane will take 1.26316h to fly. Please enter a distance:-1 Bye! (1) Upload the source code file as the attachment (2) Provide a screenshot of a sample run of your program

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!