View the step-by-step solution to:

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...

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.

Sign up to view the entire interaction

Top Answer

The answer to this question... View the full answer

ddaley212.pdf

1
a. Hierarchy chart: Emain program housekeeping () detail () endOfJob () Flowchart: h ou sekeepcin QC) oulpu l
WHOLE_PROMPT Inpul wholesalePrlce oulput
RETA|L_PROMPT input retailPrioe profit. =...

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online