Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Programming Exercise House Renovation Your program must work for any valid number of feet including fractions and for any valid cost per square foot.
2. Programming Exercise House Renovation Your program must work for any valid number of feet including fractions and for any valid cost per square foot. Each run of your program will produce costs for one renovation of painting and carpeting for one room You will input ALL values from the console (not defined in program). This will be the length, width and highth of the room. Then the length, highth for door and two windows and the length, width and highth of the bookcase. Finally the cost per square foot for the paint and carpet. You will figure out the number of square feet of wall space that will need painting and the aumbet of square feet of floor space that will need carpeting. You will need to figure the square feet for each wall1 (e.g., Lab 03) and then from the total subtract the door, window and bgokshelfsquare feet as each is entered to figure wall space that needs painting. For the carpet since the bookshelf is built in the middle of a wall you need to subtract its width times length to reduce the floor square feet. When you have completed this project run your program for each of the house renovation projects listed below. Save the output after each run to turn in with this assignment. Output file is the Java program and then each of the runs (copy them into the same .txt file). You will output the total number of wall and total floor square feet after the subtraction and then output the cost of the painting and carpet. First renovation project . o Room is 12 feet long, 12 feet wide, and 12 feet high o Door is 2 feet wide by 10 feet high o Window 1 is 3 feet wide by 5 feet high o Window 2 is 3 feet wide by 5 feet high o Bookshelf is 8 feet long by 10 feet high by 2 feet deep o Cost per square foot for painting is $1.00 o Cost per square foot for carpeting is $2.00 . Second renovation project o Room is 24 feet long, 12 feet wide, and 8 feet high Door is 2 feet wide by 6 feet high o o Window 1 is 3 feet wide by 5 feet high o Window 2 is 8 feet wide by 5 feet high o o o Bookshelf is 8 feet long by 6 feet high by 3 feet deep Cost per square foot for painting is $1.57 Cost per square foot for carpeting is $2.89 Third renovation project . o Room is 12.75 feet long, 11.25 feet wide, and 12 feet high o Door is 1.95 feet wide by 10 feet higlh o Window 1 is 2.5 feet wide by 5 feet high o Window 2 is 6.8 feet wide by 7.2 feet high o Bookshelf is 8 feet long by 6 feet high by 3 feet deep o Cost per square foot for painting is $0.95 o Cost per square foot for carpeting is $1.25
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