Description
Draw the hierarchy chart and then plan the logic for a program needed by the sales manager of The Henry Used Car Dealership. The program will determine the profit on any car sold. Input includes the sale price and actual purchase price for a car. The output is the profit, which is the sale price minus the purchase price. Use three modules. The main program declares global variables and calls housekeeping, detail, and end-of-job modules. The housekeeping module prompts for and accepts a sale price. The detail module prompts for and accepts the purchase price, computes the profit, and displays the result. The end-of-job module displays the message Thanks for using this program .
Explanation & Answer
Review
Review
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Similar Content
Related Tags
Shutter Island
by Dennis Lehane
Milkweed
by Jerry Spinelli
The Magic Mountain
by Thomas Mann
Fear - Trump in the White House
by Bob Woodward
Where'd You Go Bernadette
by Maria Semple
Catching Fire
by Suzanne Collins
The Odyssey
by Homer
Crime and Punishment
by Fyodor Dostoyevsky
Catch-22
by Joseph Heller