Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education