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)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 7PE
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,