Question: Java UML OOP design Design an application for a smart fridge. The fridge has a display on the front. The application can: Keep track of

Java UML OOP design

Design an application for a smart fridge. The fridge has a display on the front. The application can:

Keep track of the number of items in the fridge

. Display when there is only one item of a certain type left, eg "Only one carton of milk left

Display when an item is going rotten eg "Cheese is 2 days past its expiry date"

When an item is added to the fridge a bar code is scanned and records the item ID and expiry date (the date it starts to go rotten). An item description is retrieved from the fridge's database.

Design an object-oriented application for the fridge.

Draw a simple UML diagram showing the design of each class. You do not need to list constructors or getters/setters.

The controller (main) class will have methods for:

When the user removes an item (checks how many are remaining, alerts the user if necessary)

.To check if any items are going rotten.Alerts users if necessary.

.Write pseudo-code or point-by-point English to clearly describe how these two methods work.

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!