Question: Programming Challenge: 10 - Miles Per Gallon Rather then hard-code the values for miles and gallons, prompt the user for this information and accept it

Programming Challenge: 10 - Miles Per Gallon Rather then hard-code the values for miles and gallons, prompt the user for this information and accept it using cin statements. A car holds 15 gallons of gasoline and can travel 375 miles before refueling. Write a program that calculates the number of miles per gallon the car gets. HInt: MPG= Miles Driven/Gallons of Gas Used

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!