
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

Knowledge Booster
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
- java languageSchedule the People classIn main file, create an object of class PeopleMake the showPeople method callarrow_forwardis the term describing the process of changing someone from one class to another.arrow_forwardThe ability to create classes with more specific attributes and methods that share the properties and methods of existing classes is referred to as: Abstraction Polymorphism Typecasting Inheritancearrow_forward
- Object-oriented programmingProgram the employee class as indicated in the diagramTo calculate the salary, just multiply the number of hours by the payment per hour.The capture method asks the user for the data for the three attributes, asks for the hours worked and the payment per hour and with these data calculates the salary.The show method displays all of the employee's data.Do not forget the getter and setter methods only for attributes of type privateYour company has 7 employees and you would like1. Capture the data of each employee2. Show the data of each employee3. Show the data of a particular employee4. Calculate and display the average salary5. Calculate and display the name of the employee with the highest salary6. Calculate and display the name of the employee with the lowest salary7. Calculate and show the total payment you will make for all your employeesarrow_forwardT/F 3. Any Java class must have a main method, which is the first method that is called when the Java class is invoked.arrow_forwardQuestion p .Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this linearrow_forward
- It is possible to express the relationship that exists between classes and objects.arrow_forwardObject adapters and class adapters each provide a unique function. These concepts are also significant due to the significance that you attach to them.arrow_forwardDiscussion: Advantages of Methods This discussion has 2 parts: What are the advantages of using methods? Name at least 2 advantages and how you benefit from each. List at least 1 scenario you would want to use methods instead of having the code in the main class.arrow_forward
- Please include java doc commentarrow_forwardWrite a code in Java programming You are working in a game company that is developing a new RPG game. One of the core features of the game is the ability to create and manage different types of characters, such as warriors, mages, and archers. However, your colleague, who was previously working on the implementation of the CharacterManager class, has been laid off due to excessive absences. You have been assigned to take over the project and complete the implementation of the class based on the design specifications outlined below: Given the following main method: public static void main(String[] args) { CharacterManager manager = CharacterManager.getInstance(); manager.createCharacter(CharacterType.WARRIOR).attack(); manager.createCharacter(CharacterType.MAGE).attack(); manager.createCharacter(CharacterType.ARCHER).attack(); } Your output should be: Warrior is attacking Mage is attacking Archer is attacking Note that you should not change the method signature.arrow_forwardTrue or False A class can implement more than one interface.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education