Implement and test an inventory application in Java that will allow a client to manage information about a store inventory. The application should allow the client to start with an empty inventory and then manage it by adding, deleting, searching, and displaying specific information from the inventory according to the specification below. Your application should offer the client a menu with the following operations: 0. Exit the program. 1. Add an item. 2. Delete an item. 3. Display info about an item. 4. Update an item. 5. Display content of inventory. 6. Display info about items (by shelf). 7. Display info about the most/least expensive item. 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. Here is the specification of the functionality of the inventory application: 1. Add an item: Adds an item in the inventory. The item name uniquely identifies an item in the inventory. Requests the following input from the client of the program: item name, item amount, item price, item shelf location. If the item name that is specified is already in the inventory, the program should prompt the client for a different item name. Examples: (shirt,5,20,2)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

The question requires to use Java and I trying to figure out as to how to add an item within the intentory class where you need to use a driver class and other sub classes to let it work. The question and the output for when you selected the option to add an item are in the images.

You know the options. Make your menu selection now: 1
You are now adding a new item to the inventory.
Enter the name of the item: sock
Enter the number of items of this type: 5
Enter the price of an item of this type: 1.99
Enter the location of this item (shelf number): 3
Information about the item "sock" has been registered!
Transcribed Image Text:You know the options. Make your menu selection now: 1 You are now adding a new item to the inventory. Enter the name of the item: sock Enter the number of items of this type: 5 Enter the price of an item of this type: 1.99 Enter the location of this item (shelf number): 3 Information about the item "sock" has been registered!
Implement and test an inventory application in Java that will allow a client to manage information about a store
inventory. The application should allow the client to start with an empty inventory and then manage it by adding,
deleting, searching, and displaying specific information from the inventory according to the specification below.
Your application should offer the client a menu with the following operations:
0. Exit the program.
1. Add an item.
2. Delete an item.
3. Display info about an item.
4. Update an item.
5. Display content of inventory.
6. Display info about items (by shelf).
7. Display info about the most/least expensive item.
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.
Here is the specification of the functionality of the inventory application:
1. Add an item: Adds an item in the inventory. The item name uniquely identifies an item in the inventory. Requests
the following input from the client of the program: item name, item amount, item price, item shelf location. If the item
name that is specified is already in the inventory, the program should prompt the client for a different item name.
Examples: (shirt,5,20,2)
Transcribed Image Text:Implement and test an inventory application in Java that will allow a client to manage information about a store inventory. The application should allow the client to start with an empty inventory and then manage it by adding, deleting, searching, and displaying specific information from the inventory according to the specification below. Your application should offer the client a menu with the following operations: 0. Exit the program. 1. Add an item. 2. Delete an item. 3. Display info about an item. 4. Update an item. 5. Display content of inventory. 6. Display info about items (by shelf). 7. Display info about the most/least expensive item. 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. Here is the specification of the functionality of the inventory application: 1. Add an item: Adds an item in the inventory. The item name uniquely identifies an item in the inventory. Requests the following input from the client of the program: item name, item amount, item price, item shelf location. If the item name that is specified is already in the inventory, the program should prompt the client for a different item name. Examples: (shirt,5,20,2)
Expert Solution
Step 1

BELOW ? STEP BY STEP COMPLETE PROGRAM INCLUDED WITH COMMENTS AND SCREENSHOT OF OUTPUT :

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education