Question: Step 5 : Implement the menu options Step 5 a: In the main section of the code, call print _ menu ( ) and prompt
Step : Implement the menu options
Step a: In the main section of the code, call printmenu and prompt for the user's choice of menu options. Each option is represented by a single character.
If an invalid character is entered, continue to prompt for a valid choice. When a valid option is entered, execute the option by calling executemenu Then, print the menu and prompt for a new option. Continue until the user enters q pt
Hint: Implement Quit before implementing other options.
Ex:
a Add item to cart r Remove item from cart c Change item quantity i Output items' descriptions o Output shopping cart q Quit Choose an option:
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
