Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions