Question
Draw the flowchart for a program that calculates the projected cost of an automobile trip. Assume that the users car travels 20 miles per gallon
Draw the flowchart for a program that calculates the projected cost of an automobile trip. Assume that the users car travels 20 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 10 percent. The program accepts data continuously until 0 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. Requirements: As you are working, make sure that there is a module for housekeeping, a module for the detailLoop and a module for endOfJob. For full credit, make sure that you use the proper flowchart symbols and concepts as introduced in Chapter 2 of the Programming Logic book.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started