Question: The coding language is JAVA. Required Project Name: LastnameFirstname_2212 Required package name: Project In this program, you will be comparing the size, price, and potential

The coding language is JAVA. Required Project Name: LastnameFirstname_2212 Required package name: Project In this program, you will be comparing the size, price, and potential discount for 3 different freezers. Create the following in your program: A class named Freezer has the following data fields with appropriate access modifiers and data types: brand name height width depth original price color The Freezer class should also contain the following with appropriate access modifiers and data types: no-arg constructor (optional default values) and overloaded constructor getters and setters for all data fields value-returning instance method that calculates cubic feet. Use this formula: (height times width times depth) divided by 1728. value-returning instance method that calculates the final price. If the freezer is white and has a price more than or equal to 199.99, the buyer receives a 10% discount. Use this formula (or your own, as long as it works): original price minus (original price times 0.10). toString must use this exact method header: public String toString() with optional override annotation Formatting: format cubic feet to 3 decimal places, recommended pattern: #,##0.000. Format all dollars in currency formatting (dollar sign, comma separated, 2 decimal places). Feel free to use DecimalFormat or NumberFormat. Create a class named DriverFreezer in a separate file with a main method that includes the following (see sample output): At the top of the program, comment your name, CIS 2212 Project, today's date. Create an instance/object of the Freezer class using the no-arg constructor. Create an instance/object of the Freezer class using overloaded constructor for a freezer named King Kold with height of 29.3, width of 24.75, depth of 22.25, price of $199.99, color White. Create an instance/object of the Freezer class using overloaded constructor for a frig named Frigidaire with height of 24.5, width of 18.19, depth of 16.78, price of $159.59, color White. Get user input for a freezer, i.e. get name, height, width, depth, price, color. Populate the first object (the one created with the no-arg constructor) by using setters and passing user input. Display output for all 3 objects implementing the toString method (explicitly or implicitly). Price must be greater than or equal to $129.99. Continue to prompt the user until a valid price is entered. No validation is necessary for depth, width, height. *NOTE: for those already familiar with Java programming, please keep this simple: no try/catch, no exceptions, no GUI, etc. Please use only the concepts discussed through Chapter 9 and concepts presented in the jar files up to this point. Before starting this lab, be sure to refer to the How to Submit Assignments document in eLearn for proper documentation, indention, naming conventions, etc. Points may be deducted if submitted incorrectly. REMINDER: Any sources used besides the textbook or the instructor must be documented in your program with details such as URL. Your sample output should look very similar to the sample output below (user input in green text): So you wanna look at freezers... Enter name: Magic Chef Enter color: Stainless Steel Enter height: 32.2525 Enter width: 20.5050 Enter depth: 22.7575 Enter price: 100 Price must be at least $129.99. Please try again: 110 Price must be at least $129.99. Please try again: 120 Price must be at least $129.99. Please try again: 129.9899 Price must be at least $129.99. Please try again: 229.99 Magic Chef Color: Stainless Steel Cubic Feet: 8.710 Original Price: $229.99 Final Price: $229.99 King Kold Color: White Cubic Feet: 9.337 Original Price: $199.99 Final Price: $179.99 Frigidaire Color: White Cubic Feet: 4.328 Original Price: $159.75 Final Price: $159.75

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!