Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Neo4j Data Modeling

Authors: Steve Hoberman ,David Fauth

1st Edition

1634621913, 978-1634621915

Students also viewed these Databases questions

Question

Prepare an electronic rsum.

Answered: 1 week ago

Question

Strengthen your personal presence.

Answered: 1 week ago

Question

Identify the steps to follow in preparing an oral presentation.

Answered: 1 week ago