Draw a 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...
This question has been answered
Question

Draw a 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 sales price and the 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 sales 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.


b) Revise the profit-determining program so that it runs continuously for any number of cars. the detail loop executes continously while the sale price is not 0; in addition to calculating the profit, it prompts the user for and gets the next sale price. the end-of-job module executes after 0 is entered for the sale price.

Answered by Expert Tutors

o. Donec

gue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Don
1 Attachment
ddaley212.pdf
pdf
The student who asked this rated it
Get unstuck

338,468 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses