Draw the hierarchy chart and then plan the logic for a program for the sales manager of The Couch Potato Furniture Company. The manager needs a program to determine the profit on any item sold. Input includes the wholesale price and retail price for an item. The output is the item's profit, which is the retail price minus the wholesale 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 wholesale price. The detail module prompts for and accepts the retail price, computes the profit, and displays the result. The end-of-job module displays the message "Thanks for using this program".
Following areas are suggested to consider while grading the assignment.
Students should present the program documentation in a logical order as:
Data dictionary:
Should use table in Microsoft Word
Should include appropriate data variables and descriptions.
Input and Output/Work area.
Hierarchy Chart should:
Present a logical order of tasks/subroutines.
Flowchart should:
Flow from top to bottom and left to right
Not contain missing flow lines
Result in the required output.
Agree with flowchart in routines and detail logic.
Pseudocode should:
Describe all subroutines that are included in the hierarchy chart.
Agree with flowchart in routines and detail logic.