Give me both the psuedocode
and the flowchart for both a) and b).
a) 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
• 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
module prompts for and accepts a sale price.
detail module prompts for and accepts the purchase price, computes the
profit, and displays the result.
module displays the message “Thanks for using this program”.