Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You're going to do some planning for the construction of a small summer home. Given the dimensions of a one-story, dwelling, you will determine how
You're going to do some planning for the construction of a small summer home. Given the dimensions of a one-story, dwelling, you will determine how much paint is needed to paint the interior and how many paintbrushes you'll need. Your program will need only four pieces of data: the length, width, and height of the planned structure and how many coats of paint are to be applied. Assume that the structure is going to be a simple, rectangular playhouse type, with no fancy additions, vaulted ceilings, etc. Also, in order to satisfy your client's privacy requirements, there will be no windows on any of the walls. Plan on painting the four walls and the ceiling of the summer house. Start by making your program user feel at home by asking for his/her name (first name only), then use it during the rest of the dialogue. For example: "OK, Jim, now tell me each dimension of the house." Ask for the three dimensions needed-each may be different- and how many coats of paint are to be applied. Calculate the required resources as follows. 1 gallon of paint will cover 325 square feet of surface. Also, paintbrushes tend to wear out with use, and your paint supplier recommends using one brush for every 1100 square feet (OK, they're in the business to make money (or profit which ever)!). You need to calculate enough paint and brushes to give all four walls and the ceiling the same number of coats of paint. After computing all the requirements, display the actual total square footage of wall and ceiling space in the summer house; the number of coats of paint to be applied; how many gallons of paint are required: and how many paintbrushes are needed. Save your program as: prog2-ii.cpp, where the letters "ii" are replaced by your own initials. Data dictionary, flowchart, CPP File. All files are to be uploaded to Moodle
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