Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question : CSC 200 - Introduction To Computer Science(with comment and output) 1. For beginner low level ... CSC 200 - Introduction To Computer Science(with

Question: CSC 200 - Introduction To Computer Science(with comment and output) 1. For beginner low level ...

CSC 200 - Introduction To Computer Science(with comment and output answer is give below )

1.

For beginner low level programing

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

Window1 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

Output:-

First renovation project:

Enter the Room hieght : 12

Enter the Room width : 12

Enter the Room length : 12

Enter the Door hieght : 10

Enter the Door width : 2

Enter the window 1 hieght : 5

Enter the window 1 width : 3

Enter the window 2 hieght : 5

Enter the window 2 width : 3

Enter the bookshelf hieght : 10

Enter the bookshelf width : 2

Enter the bookshelf length : 8

Enter the paiting cost per square feet: $1.00

Enter the carpenting cost per square feet: $2.00

Area of wall After removing the painting area : 446.0

Area of floor after removing area of bookshelf : 128.0

Cost for painting : $446.0

Cost for painting : $256.0

Second renovation project:

Enter the Room hieght : 8

Enter the Room width : 12

Enter the Room length : 24

Enter the Door hieght : 6

Enter the Door width : 2

Enter the window 1 hieght : 5

Enter the window 1 width : 3

Enter the window 2 hieght : 5

Enter the window 2 width : 8

Enter the bookshelf hieght : 6

Enter the bookshelf width : 3

Enter the bookshelf length : 8

Enter the paiting cost per square feet: $1.57

Enter the carpenting cost per square feet: $2.89

Area of wall After removing the painting area : 461.0

Area of floor after removing area of bookshelf : 264.0

Cost for painting : $723.77

Cost for painting : $762.96

Third renovation project:

Enter the Room hieght : 12

Enter the Room width : 11.25

Enter the Room length : 12.75

Enter the Door hieght : 10

Enter the Door width : 1.95

Enter the window 1 hieght : 5

Enter the window 1 width : 2.5

Enter the window 2 hieght : 7.2

Enter the window 2 width : 6.8

Enter the bookshelf hieght : 6

Enter the bookshelf width : 3

Enter the bookshelf length : 8

Enter the paiting cost per square feet: $0.95

Enter the carpenting cost per square feet: $1.25

Area of wall After removing the painting area : 447.03999999999996

Area of floor after removing area of bookshelf : 119.4375

Cost for painting : $424.68799999999993

Cost for painting : $149.296875

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions

Question

=+ How well do you think you could do your job?

Answered: 1 week ago