Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a new Eclipse project named Lab2HWLastnameh irstn 1. (9 pts) Suppose you're working for a home remodeling company, and your boss wants a program
Create a new Eclipse project named Lab2HWLastnameh irstn 1. (9 pts) Suppose you're working for a home remodeling company, and your boss wants a program to help with cost estimates for painting a rectangular room containing one door and one new class named CostEstimator, write a program that allows the user to enter the following informati you can assume that the user will enter sensible input): window. Within a Length, width, and height of the room (in ft) Width and height of the room's door (in ft) Width and height of the room's window (in ft) The type of paint to use (standard or deluxe) . . Your program should then compute the total cost of paint required, based on the following guidelines: One can of paint costs $14.99 (standard) or $29.99 (deluxe). One can of paint is enough to cover 250 ft2 of wall area. . . Paint must be bought by the can. For example, if you find that your room's wall area is 358 ft the precise amount of paint you need would be 358/250 1.432 cans. Alas, Home Depot and Lowe's generally do not sell fractional cans. Hence, you would need to buy 2 cans to get this amount .Include only the room's walls (not the floor, ceiling, door, or window) in your paint calculations. Add the 9.25% TN sales tax to get your final cost. Finally, your program should display the following information to the user: The paintable wall area of the room, in ft (excluding the floor, ceiling, door, and window) The number of cans of paint required The before-tax cost of the paint The dollar amount of tax The final, after-tax cost of the paint . Hints: Make sure that you are calculating the wall area correctly. It is NOT length x width x height Make sure that you are calculating the wall area correctly. It is that gives you the yolume of the room! You may want to sketch a diagram to help you visualize the room
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started