import java.text.DecimalFormat; // to format numbers (check the documentation) /** * Compute the amount of paint needed to paint a room */ public class PaintShopCalculator { // Constants // Prices of the paint containers in dollars public final double FIVEGALLONS = 116.00; public final double ONEGALLON = 23.20; public final double HALFGALLON = 11.60; public final double QUART = 5.80; public final double PINT = 2.90; public final double HALFPINT = 1.45; // Area that can be painted with one gallon of paint (in square inches) public final double AREA_PER_GALLON = 25000.0; /** * Initialize this PaintShopCalculator with the room measurements. For * example, if the height is 10'2'', heightFeet is 10 and heightInches is 2. * * @param heightFeet * the number of feet of the height measurement * @param heightInches * the number of inches of the height measurement * @param widthFeet * the number of feet of the width measurement * @param widthInches * the number of inches of the width measurement * @param lengthFeet * the number of feet of the length measurement * @param lengthInches * the number of inches of the length measurement */ public PaintShopCalculator(int heightFeet, int heightInches, int lengthFeet, int lengthInches, int widthFeet, int widthInches) { } /** * Return as a string the result of the computation. The string should list * the exact amount of paint needed (with 3 digits after the decimal point), * the number and type of paint containers needed, and the price (with 2 * digits after the decimal point). Pay attention to the spelling (container * versus containers) and the quality of the output (no 0 one gallon * container). * * Here is an example with height=4'3'', length=5'4'' and width=6'5'': * * For this job, you need 0.772 gallons of paint. You will need to purchase * 1 one half gallon container 1 one quart container 1 one half pint * container * * The total price is $18.85 * * Thank you for your business! * * */ public String toString() { String s = "Thank you for your business"; // CHANGE THIS! return s; } }