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

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!