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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started