Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

1. Use only alpha numeric characters.

Answered: 1 week ago