Question: The Program Write a program that calculates the user's gasoline cost for the month. In the main () procedure your program should prompt the user

 The Program Write a program that calculates the user's gasoline cost

The Program Write a program that calculates the user's gasoline cost for the month. In the main () procedure your program should prompt the user for the following: Miles driven per month - Miles per gallon for their car - Price per gallon of gas You should pass these three values to a procedure that wil calculate and display the total gasoline cost for the month. You must use a procedure to calculate and display the total cost. Use the appropriate data types. Screenshot Here's an example of what your program should look like. How many miles do you drive per aoath? 1200 hou many nilies do you get per gollon (nos)? anid Hon meh do you pay for a gellon of eas? 2. 6 ? Your total gas cost is s13..3246153s461539

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!