Question: ( Dont answer if you dont know the correct answer ) . Q: model a warehouse that stores any type of products such as boxes

(Dont answer if you dont know the correct answer).
Q: model a warehouse that stores any type of products such as boxes of canned food, boxes of clothes, boxes of juice, etc. The warehouse consists of racks, each rack consists of shelves and each shelf consists of cells as can be seen in the above image.
Create a new java project with a Main class.
Add a new generic class named "Storage" that can store the information of a group of objects in the real warehouse as shown in the image above.
Add a class named "Box" that has these data fields: id, name, count, weight and price. Add "toString" method for Box to display all data fields in one line when printed. Example of a box's info:
1001, apple, 36,10.4,12.2
Add the following methods to "Storage":
a. Any needed constructor.
b. Set an object at a specific location
c. Get an object from a specific location
d. Get an object using the object's information such as "id"
e. Get the location of an object as (rack, shelf, cell).
f. Calculate minimum and maximum price of all objects
g. Report how many cells are occupied
h. Report how many cells are unoccupied
i. Report utilization percentage of the entire storage
Test all methods of "Storage" in the "Main" class.
Find BIG-O of the execution time of all methods in point (4) above. Assume 3 parameters for the storage structure w, h &d for width, height & depth respectively.
Screen-capture your testing and save images in project folder.
Compress project folder to a "zip" file.
Upload your compressed file .zip to Moodle.
Due date: see upload link on Moodle.
 (Dont answer if you dont know the correct answer). Q: model

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!