Question: Write a program that allows the adding, removing, and displaying of items in a list. It should work as shown below. User input is shown
Write a program that allows the adding, removing,
and displaying of items in a list.
It should work as shown below. User input
is shown in blue.
AddRemoveShowQuit A
Add what item to the list?
FRED
FRED has been added to the list.
AddRemoveShowQuit A
Add what item to the list?
SUE
SUE has been added to the list.
AddRemoveShowQuit A
Add what item to the list?
SAM
SAM has been added to the list.
AddRemoveShowQuit S
Items in the list:
FRED
SUE
SAM
AddRemoveShowQuit R
Remove which item from the list?
FRED
FRED has been removed from the list.
AddRemoveShowQuit S
Items in the list:
SUE
SAM
AddRemoveShowQuit Q
Okay, done.
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
