Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSC 200 - Introduction To Computer Science(with comment and output) 1. F or beginner low level programing Programming Exercise House Renovation Your program must work

CSC 200 - Introduction To Computer Science(with comment and output)

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

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago