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 (which is done when a product is sold after generating the bill the change is saved and updated into the file once the user quits the code); 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
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