Home / Expert Answers / Computer Science / a-painting-company-has-determined-that-for-every-110-square-feet-of-wall-space-one-gallon-of-paint-pa938

(Solved): A painting company has determined that for every 110 square feet of wall space, one gallon of paint ...



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. Item You 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. Don't accept a value less than $10.00 for the price of paint. Do not accept a negative value for square footage of wall space. Instructions: Uses the PersonalData class to store the home owner data, the data type of the attributes is of type MyString Defines a Room class with 4 attributes of the RoomWall class composed of two objects of type FeetInches (version 4). Use this class to calculate the area of the space to be painted. Ignore the windows. Defines a dynamic arrangement (Do not implement Vectors) where the information of each of the rooms in the house is stored. Document your solution with descriptive table, UML diagram and CRC table. For validations use try/catch and define a class for each validation suggested by the problem The PersonalData, FeetInches and MyString classes are the ones discussed during the course. Please write me a program in c++ for this.



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe