Question: Recognizing that different paint brands may necessitate specific equipment or expertise for proper application, Palette Perfection has opted to offer trained labor to execute painting
Recognizing that different paint brands may necessitate specific equipment or expertise
for proper application, Palette Perfection has opted to offer trained labor to execute painting projects according to the client's chosen brand. Consequently, the hourly labor charge will vary depending on the selected paint brand. Furthermore, to promote its service the company decided to provide a discount on the labor cost of the largest room if the total cost for the paint job exceeds $ Given these new specifications, adjustments must be made to the application to incorporate the labor charge per hour based on the paint brand, as well as to verify the total cost of the paint job and apply discounts as necessary.
The company has determined that for every square feet of wall space one gallon of paint and hours of labor will be required. For the available paint brands and the corresponding gallon prices and labor charge per hour check the following table.
Paint Brand
Gallon Price
Valspar
Labor Charge per hour
Kilz
$
Behr
$
Diamond Brite
$
Glidden
$
$
As before, the application starts by asking the customer for their name and displaying a
customized greeting message. All subsequent messages need to address the customers
by their names. The application will ask the customer for the number of rooms to be
painted. For each room, the application will first ask the customer to provide the total
surface area in square feet of wall space to be painted and then display a list of paint brands that the customer can choose from. The application will then display a report for each room including the following details before reading in the details for the next room.
The room surface area to be painted,
The number of paint gallons required to paint the room.
The price per gallon
The cost for purchasing the paint
The total number of hours of labor required for painting the room,
The cost of labor for the paint job, and
The overall cost of the painting job for the room.
When processing each room, the application needs to store some of the information
displayed in the report to be able to calculate the discount when applicable. The
information that is required to be stored is:
The room surface area,
The cost for purchasing the paint, and
The cost of labor for the paint job
After processing the details for each room and storing the relevant information the
application will print a summary report addressing the customer by their name including
the details for all the rooms and total cost for the painting job over all rooms.
The application will then check if the customer is entitled to a discount and accordingly
calculate the discount and print the total cost after the discount.
Before the application quits, it will issue a customized thank you message to the
customer. The application needs to validate all numeric values input by customer and in
case of wrong input value or an input exception the application must give an error message and ask the customer to input the values again.
Implementation Hint:
For this assignment you are free to design your code according to your preferences.
However, you need to consider the following guidelines:
The use of parallel arrays when applicable.
The use of modular design and methods when applicable
The use of final keyword when appropriate.
The use of String.format when displaying decimal digits after the decimal
point.
All user input must be validated.
Note:
You must use the JOptionPane class for inputoutput Additionally, if you use
System.exit as shown in the textbook, it may only be used as the absolute last
line in the program. You may not use System.exit, or any variant that exits the
program in the middle of the program. The program should be designed to
only exit once the algorithm has finished.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
