Question: Discuss how you would convert a program with ten menu options to one that uses submenus. Use the following example. The program has the following
Discuss how you would convert a program with ten menu options to one that uses submenus. Use the following example. The program has the following options to beging with:
Process a sale
Process a return
Add a record to the inventory file
Search for a record in the inventory file
Modify a record in the inventory file
Delete a record in the inventory file
Print an inventory list report
Print a list of inventory items by cost
Print a list of inventory items by age
Print a list of inventory items by retail value
We want to turn this into a program that presents submenus as follows:
Main Menu
aProcess a Sale or a Return
bUpdate the Inventory File
cPrint an Inventory Report
dExit the Program
Sales and Returns Menu
aProcess a Sale
bProcess a Return
cGo Back to the Main Menu
Update Inventory File Menu
aAdd a Record
bSearch for a Record
cModify a Record
dDelete a Record
eGo Back to the Main Menu
Inventory Report Menu
aPrint an inventory list report
bPrint a list of inventory items by cost
cPrint a list of inventory items by age
dPrint a list of inventory items by retail value
eGo Back to the Main Menu
Needless to say, you do not need to implement each method. For the innermost methods, just add a comment stating "Code for xxxxxxx You need to have a main module, and modules for menu and submenu items. Inside the submenu items you can just put in a comment.Please write simple pseudocode without specifying any language.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
