Question: Simulates the Management of a Simple Inventory System Java object - oriented programming Question / Description [ 1 0 Marks ] Develop a Java program

"Simulates the Management of a Simple Inventory System" Java object-oriented programming
Question/Description
[10 Marks]
Develop a Java program that manages a list of products in a store. Each product has the following attributes:
Product ID (String)
Product Name (String)
Quantity in Stock (int)
Price per Unit (double)
Requirements:
Create a Class named "Product":
The class should include data fields for each attribute (Product ID, Product Name, Quantity, and Price).
Define a constructor to initialize these attributes.
Create getter and setter methods for each data field.
Create a Class named "Store":
This class will maintain an array of Product objects (the size of the array can be fixed at 5).
Include methods to:
Add a new product to the array.
Display all products in the inventory.
Calculate and display the total value of products in stock (Quantity * Price for each product).
Find and display a product by its Product ID.
Main Method:
The main method should create an object of the Store class and provide a menu to allow the user to:
Add products to the inventory.
Display all products.
Display the total value of the inventory.
Search for a product by its Product ID.
Bonus (Optional for extra credit):
Allow the user to remove a product from the inventory using the Product ID.
Evaluation Criteria (10 Marks):
Class Design and Object-Oriented Concepts (4 Marks): Use of proper class structure, methods, and encapsulation.
Array Implementation (3 Marks): Correct use of arrays to manage the list of products.
Functionality (3 Marks): The program meets the functional requirements (adding, displaying, calculating total value, and searching).
Submission:
Submit your Java code with its output in PDF file (with brief explaining your program design and how each method works) through a Blackboard platform.
Please note that any similarity with other student's answers will be PENALISED.
--- END ---
"Simulates the Management of a Simple Inventory

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 Programming Questions!