Part 2 Add a function to your program to list the contents of the grocery list.
ID: 3626637 • Letter: P
Question
Part 2
Add a function to your program to list the contents of the grocery list.
1. User enters "l" (a lower case L) 2. The program should show the items and quantities from the list
A sample session: My Grocery List
a: Add an item to the grocery list
r: Remove an item from the grocery list
l: List the items in the grocery list Please enter an option:
l Items on the Grocery List:
3 bread
1 butter
1 milk
What to hand in:
A C++ program named a4q1p2.cpp containing the C++ program.
Make sure to include your Name, NSID, and Student Number at the top of the text file, and in a comment in the Scratch script.
Evaluation: