Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java please Shopping List application Implement and test a Shopping List application in Java that will allow a client to manage information about a

image text in transcribedIn java please

Shopping List application Implement and test a Shopping List application in Java that will allow a client to manage information about a shopping list. An item on the Shopping List has a unique name, a brand, the amount to be purchased, and an estimated price. The application should allow the user to start with an empty Shopping List and then manage it by adding. deleting, searching and displaying information about tasks from the Shopping List according to the specifications below. Your application should offer the client a menu with the following operations: 0. Exit. 1. Add an item to the Shopping List. 2. Print content of Shopping List and total estimated cost. 3. Search for item in Shopping List. 4. Delete an item from Shopping List. Develop an extensive test suite and test your program thoroughly on it. Your test suite must include, but should not be limited to, the data from this input file. A sample run on this data can be found in this output file. The data should be read in the format in which it is shown in the sample run. Your program will be tested using similar input data. You can assume correct input. Here is the specification of the functionality of the Shopping List application: 1. Add an item to the Shopping List: Adds information about an item on the Shopping List. Requests the following input from the user: item name, brand, amount and estimated cost. If there is already an item with this name on the Shopping List, the item cannot be added and the user should be asked for a different name until a valid name is entered. 2. Print content of Shopping List and total estimated cost: Displays information about all items in the Shopping List. Requests the following input from the user: None. For each item in the Shopping List, displays item name, brand, amount and estimated cost. 3. Search for item in Shopping List. Displays information about a user specified item on the Shopping List. Requests the following input from the user item name. The user should be notified if there is no item with that name in the Shopping List. 4. Delete an item from Shopping List: Deletes a specified item specified by name from the Shopping List. Requests the following input from the user: item name. The user should be notified if there is no item with that name in the Shopping List. Hint: Make sure that you use an object-oriented design in your solution and that your design ensures that of this code can be re-used or extended easily. In future applications the Shopping List class may be used in an application that manages shopping lists for multiple users by using the Shopping List class without any changes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions