Try the fastest way to create flashcards
Question

# A painting company has determined that for every 110 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $25.00 per hour for labor. Write a modular program that allows the user to enter the number of rooms that are to be painted and the price of the paint per gallon. It should also ask for the square feet of wall space in each room. It should then display the following data: - The number of gallons of paint required - The hours of labor required - The cost of the paint - The labor charges - The total cost of the paint job Input validation: Do not accept a value less than 1 for the number of rooms. Do not accept a value less than$10.00 for the price of paint. Do not accept a negative value for square footage of wall space.

Solutions

Verified
Step 1
1 of 3
#include <iostream>

using namespace std;


## Recommended textbook solutions

#### Starting Out with C++ from Control Structures to Objects

8th EditionISBN: 9780133769395 (7 more)Godfrey Muganda, Judy Walters, Tony Gaddis
1,374 solutions

#### Fundamentals of Database Systems

7th EditionISBN: 9780133970777Ramez Elmasri, Shamkant B. Navathe
961 solutions

#### Introduction to Algorithms

3rd EditionISBN: 9780262033848Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
872 solutions

#### Introduction to Algorithms

4th EditionISBN: 9780262046305Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
945 solutions