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 objectoriented programming
QuestionDescription
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
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 Marks:
Class Design and ObjectOriented Concepts Marks: Use of proper class structure, methods, and encapsulation.
Array Implementation Marks: Correct use of arrays to manage the list of products.
Functionality 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
