Question: Write a java program that implements a grocery list manager where the user can choose from a list of commands in order to add/remove items,

Write a java program that implements a grocery list manager where the user can choose from a list of commands in order to add/remove items, view their list, and delete the current list to create a new one. When adding an item prompt the user for the item name, category and price to be stored in the list. When displaying the list have the items sorted into their given categories as well as displaying the total cost of all of the items. (Items within their similar categories do not have to be sorted.)

Command Interface Example- (Press the corresponding number to choose the command)

1.Add Item

2.Remove Item

3.Display List

4.New List

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!