Question: 14. Write a program that asks a user to enter the distance of a trip in miles the miles per gallon estimate for the user's

 14. Write a program that asks a user to enter the
distance of a trip in miles the miles per gallon estimate for

14. Write a program that asks a user to enter the distance of a trip in miles the miles per gallon estimate for the user's car, and the average cost of a gallon of gas. Your program should calculate and display the number of gallons of gas needed and the estimated cost of the trip

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!