In the previous discussion board you were given the program


When to use which control structures

In the previous discussion board you were given the program scenario for Artistic Solutions, a painting company, and then you were asked how you would design the program. In this discussion decide what control structures are necessary for the application for Artistic Solutions. In your post give your reasons for choosing those control structures and be prepared to backup those choices.

Program Scenario:

Artistic Solutions, a painting company, has determined that for every 160 square feet of wall space, one gallon of paint and three hours of labor are required. The company charges $28.00 per hour for labor. Design a modular program that allows the user to enter the number of rooms that are to be painted, the approximate square feet of wall space in each room (it may differ from room to room), and the price of the paint per gallon. It should then create a report that includes a fancy company header and displays the following information:

  • The number of gallons of paint required (rounded up to the next full gallon)
  • The hours of labor required
  • The cost of the paint
  • The labor charges
  • The total cost of the paint job

Previous discussion board was answered with

Looking at the initial problem I would keep this program simple giving it three modules.

The first would get the input data (squareFeet, gallonOfPaint, hoursWorked, Cost)

The second would process the input data (Real squareFeet, Real gallonOfPaint, Real hoursWorked)

The last would output the processed data as how many gallons were required, hours worked, cost of paint, labor charges and total cost of the job.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: In the previous discussion board you were given the program
Reference No:- TGS02344108

Now Priced at $25 (50% Discount)

Recommended (96%)

Rated (4.8/5)