Answered You can hire a professional tutor to get the answer.

QUESTION

Part I. Written Exercises - create word or txt file with answers 1. Order of Precedence Evaluate each expression listed below step by step.

2.2

3.1

4.1

1

2

4

Hint: Answer for first set of values is 25 under square root with answer 5

Need  your source code and your txt file containing inputs and output to turn in with this assignment.

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 number of square feet of floor space that will need carpeting. You will need to figure the square feet for each wall (e.g., Lab 02) and then from the total subtract the door, window and bookshelf square 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
  • Room is 12 feet long, 12 feet wide, and 12 feet high
  • Door is 2 feet wide by 10 feet high
  • Window 1 is 3 feet wide by 5 feet high
  • Window 2 is 3 feet wide by 5 feet high
  • Bookshelf is 8 feet long by 10 feet high by 2 feet deep
  • Cost per square foot for painting is $1.00
  • Cost per square foot for carpeting is $2.00
  • Second renovation project
  • Room is 24 feet long, 12 feet wide, and 8 feet high
  • Door is 2 feet wide by 6 feet high
  • Window 1 is 3 feet wide by 5 feet high
  • Window 2 is 8 feet wide by 5 feet high
  • 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
  • Room is 12.75 feet long, 11.25 feet wide, and 12 feet high
  • Door is 1.95 feet wide by 10 feet high
  • Window 1 is 2.5 feet wide by 5 feet high
  • Window 2 is 6.8 feet wide by 7.2 feet high
  • Bookshelf is 8 feet long by 6 feet high by 3 feet deep
  • Cost per square foot for painting is $0.95
  • Cost per square foot for carpeting is $1.25

.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question