Question: In java create a program that can keep track of product inventory and generate a bill for the user. The code must be menu-driven and

In java create a program that can keep track of product inventory and generate a bill for the user.

The code must be menu-driven and let the user add and delete products for sale, it should also be able to increase an existing product's quantity (receive more product/restock) or reduce an existing product's quantity (like when a product is sold); the code will continue to run until the user decides to quit. Ensure the code is based on using parallel sub-arrays capable of holding the data about the inventory.

Ensure the following information is displayed about the product such as: item ID, quantity, price, and description; the description should let the user keep note of the product characteristics. When the product is sold make sure all of the customer information along with the information about the product should be shown on a bill. Assume the user can only buy one product at a time, but the user is allowed as many of the one type of product that they like (only if there is enough quantity of the item in stock that they wish to purchase); to do this the code must initially load the inventory from the file. When the user quits, the current inventory and all of the product information should be recorded in the same file; the initial access and changes made by the user once they quit are the only times the file should be accessed.

Inside the inventory file:

Item Id

quantity

price

description

for example:

001

24

12.99

a white table made to seat six people

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!