Paint Calculator

CSC 108 Introduction to Programming
Spring, 2022 Final Project
Congratulations! You have a new client! Tom’s Paint has contracted you to create a suite of
programs to serve their needs.

  1. Create a Java program that generates a proposal for an interior painting job. Your
    program should allow Tom’s Paint employees to enter data for a painting job on a roomby-room basis. For each room to be painted, the employee should enter the length and
    width of the room, the number of doors, and the number of windows. Your program
    should then calculate the number of gallons needed to paint that room. Assume that
    windows are 3 ft. 6 in. by 4 ft. Assume doors are 3 ft. wide by 6 ft. 8 in. tall. Assume
    walls are 8 ft tall. Assume 1 gallon of paint covers 100 square feet. Tom’s Paint charges
    $50 per gallon of paint used. It takes Tom’s Paint 1 hour to paint 100 square feet.
    Tom’s paint charges $45 per hour for labor. The generated proposal should display each
    room on a separate line and include the cost of the paint as well as labor costs. The
    generated proposal should include a Total Cost for the proposed job. You might
    consider output that looks something like this:
    Job Proposal
    Room Materials Labor Cost
    Room 1 $100 $90 $190
    Room 2 $150 $135 $385
    Total $575
  2. For each paint job, Tom’s Paint would like a profit report generated. Assume that Tom’s
    Paint’s cost for a gallon of paint is $13 and that Tom’s Paint pays employees $23 per 100
    square feet. Your report should display the cost for Tom’s Paint to complete the job and
    calculate and display the profit generated. You might consider output that looks
    something like this:
    Profit Report
    Proposed Amount: $575
    Estimated Cost: $180
    Estimated Profit: $395
  3. Extra Credit: Create a data class that encapsulates a Room to be painted. Use your data
    class to do the processing for Task 1 above.

Solution

This question has been answered.

Order Now
Scroll to Top