Question: Draw the flowchart for a program that calculates the projected cost of an automobile trip. Assume that the user s car travels 2 0 miles
Draw the flowchart for a program that calculates the projected cost of an automobile trip. Assume that the users car travels miles per gallon of gas. Design a program that prompts the user for a number of miles driven and a current cost per gallon. The program computes and displays the cost of the trip as well as the cost if gas prices rise by percent. The program accepts data continuously until is entered for the number of miles. Display "End of program" when the program is finished. Hint: The trip cost is calculated by using the number of miles driven divided by miles per gallon, multiplied by the cost per gallon.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
