Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A painting company has determined that for every 1 1 0 square feet of wall space, one gallon of paint and eight hours of labor

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

=+Identify the type of global assignment for which CCT is needed.

Answered: 1 week ago