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 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
Get step-by-step solutions from verified subject matter experts
