Question: Write a menu-driven program that allows a user to create a shopping list. The user should have the option to add an item, remove an

Write a menu-driven program that allows a user to create a shopping list. The user should have the option to add an item, remove an item, sort and print the list. There should also be an option to quit. If the user attempts to remove an item that is not on the list, the program should not crash (i.e., you should check if the item is in the list before attempting to remove it). If the user chooses to print the list, the printed list should be numbered. Do user validation to ensure that the user enters a valid choice from the menu. Here is an example of what your program's menu should look like: a Add an Item r Remove an Item s Sort Shopping List p Print Shopping List Quit Please enter your choice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
