Question
Using java Create an app to manage a listing of inventories for a small shop. The items in the shop fall into two categories: Packaged
Using java
Create an app to manage a listing of inventories for a small shop.
The items in the shop fall into two categories: Packaged or Bulk. All items should have a unique ID (integer code), name, category (either Packaged or Bulk), and expiration date.
- Packaged items have two additional attributes:
- weight
- price
- Bulk items have one additional attribute:
- price per pound
The user should be able to view a list of all items, search for a particular item by name, delete an item by name, add an item by providing all necessary information for that item, and, view a list of items that will expire by a certain date. The addition and deletion should be visible the next time the program is run.
The information for the inventory should always be read from a text file each time the program is run. The format of the text file is your choice and you MUST turn in a text file with a minimum of six items.
There should be a menu for user to choose an operation and exit the program. User interface must be minimally user-friendly.
The program must use inheritance for the different categories of items. When the program is deleting or adding an item, the program must also rewrite the file upon exiting.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started