28 Aug C++ Basic Program Assignment
program:
Assume you are planning the construction of a building with 3 rooms, with a layout as shown below
Room 1 takes 50% of the building space
Room 2 and Room 3 each take 25% of the building space
Length
————————-
| Room 1 |
| |
|————————| Breadth
| Room 2 | Room 3 |
| | |
————————-
1) Find the volume of the building based on length, breadth, and height. Print value to two decimals.
2) Find the floor area of the building based on length and breadth. Print value to two decimals.
3) Calculate the area of each room given the length and breadth. Print value to two decimals.
4) Assume it takes one laborer to build 575 cubic feet of space. Calculate the Number of laborers required to build the entire building. (Hint: use volume of the building for total cubic feet). If the result is a decimal then round it off to the next highest number. Ex: 10.43 would be 11 laborers.
5) Given the rate of construction at 2.5 hours per square feet find the total hours required to construct the building. (Hint: use area of the building for total square feet). Do not round off the hours, instead print actual hours to two decimal places
6) Given the cost of construction as $ 10 per hour per laborer find the total construction cost. Compute the actual cost based on the rounded value of total hours compute the actual cost. Do not round the cost, instead print actual cost to two decimal places
****************************
Program output with example input shown in italics:
Enter the dimensions of the building (in feet)
Length: 30 [Enter]
Width: 20 [Enter]
Height: 10 [Enter]
The volume of the building: 6000.00 Cubic feet
Area of the building: 600.00 Square feet
Area Room 1 : 300.00 square feet
Area Room 2 : 150.00 square feet
Area Room 1 : 150.00 square feet
# laborers required: 11 ( actual is 10.43 rounded off to 11)
# Hours to build: 1500.00
Cost to build: $165,000.00
NOTE: Remember the numbers given are for example only, actual numbers will vary based on user input of length, breadth, and height
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Wridemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.