construction of a small summer home

 (Not rated)
 (Not rated)

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.

    • 7 years ago

    Purchase the answer to view it

    • attachment