Help for Java Programming Create a proof of concept class design based on the following ideas in Java Take a look at your refrigerator and think about how you would model it as a class. Considerations include: A refrigerator is made by a company on a manufacturing date and has an overall size based on length, width, and height A refrigerator contains a number of shelves and drawers for storing dairy, meats, and vegetables A refrigerator also has storage areas on the door for things like bottled items, condiments, jars, etc. Some refrigerators have a freezer side or section as well for storing meats, frozen food products, etc. Some refrigerators have an ice maker and drinking water filter There are also different types of items you can store in the refrigerator. Considerations here include: All items at least have some kind of id, name, and price All items are put in the refrigerator on a specific date, and some items are perishable that expire on a specific date The descriptions in the overview are open ended and not overly specific. This is done on purpose to see how you would design classes from commonly described situations   Create at least 2 refrigerator objects and an appropriate number of different items to store into each refrigerator to properly test your class design Design methods in your classes to be able to perform and report on the following situations: Simulate adding and removing items to and from the refrigerator Be able to see how many items are in a refrigerator and which items are expire and when Be able to show where different items in the refrigerator are located (i.e. on which shelf, drawer, or door, in the freezer, etc.) Report how much money has been spent on all the items in the refrigerator You are welcome to add more tests and functions as you see fit.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question

Help for Java Programming

  • Create a proof of concept class design based on the following ideas in Java
  • Take a look at your refrigerator and think about how you would model it as a class. Considerations include:
    • A refrigerator is made by a company on a manufacturing date and has an overall size based on length, width, and height
    • A refrigerator contains a number of shelves and drawers for storing dairy, meats, and vegetables
    • A refrigerator also has storage areas on the door for things like bottled items, condiments, jars, etc.
    • Some refrigerators have a freezer side or section as well for storing meats, frozen food products, etc.
    • Some refrigerators have an ice maker and drinking water filter
  • There are also different types of items you can store in the refrigerator. Considerations here include:
    • All items at least have some kind of id, name, and price
    • All items are put in the refrigerator on a specific date, and some items are perishable that expire on a specific date
  • The descriptions in the overview are open ended and not overly specific. This is done on purpose to see how you would design classes from commonly described situations

 

  • Create at least 2 refrigerator objects and an appropriate number of different items to store into each refrigerator to properly test your class design
  • Design methods in your classes to be able to perform and report on the following situations:
    • Simulate adding and removing items to and from the refrigerator
    • Be able to see how many items are in a refrigerator and which items are expire and when
    • Be able to show where different items in the refrigerator are located (i.e. on which shelf, drawer, or door, in the freezer, etc.)
    • Report how much money has been spent on all the items in the refrigerator
  • You are welcome to add more tests and functions as you see fit.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning