Question: Create a new NetBeans project called Ex 3 PaintJob. 2 . A painting company has determined that for every 1 1 5 square feet of

Create a new NetBeans project called Ex3PaintJob.
2. A painting company has determined that for every 115 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 program that prompts the user for the
following inputs:
The number of rooms to be painted.
For each room, the square feet of wall space. Hint: use a loop to get square feet of wall space for each room.
The price of the paint per gallon.
3. Your program must have the following methods:
getRooms()- prompts for and returns the number of rooms. Do not allow a value <1.
getSquareFeet() accepts number of rooms as a parameter and gets square footage of each room. Returns total
square footage. Do not allow square footage values <1.
getPaintCost() prompts the user for cost of paint per gallon and returns it. Do not allow a cost per gallon < $1.00
calcPaintGallons() accept square feet of wall space as a parameter and return gallons of paint needed.
calcPaintCost() accepts number of gallons and returns the paint cost.
calcLaborCost() accepts total square feet, calculates and returns the labor cost.
displayJobCost() accepts total square feet, gallons of paint needed, paint cost, labor cost, and job total as parameters
and displays an itemized breakdown of the job cost

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!