Question: 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
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.
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
