Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Paint Job Estimator A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Paint Job Estimator 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 $18.00 per hour for labor. Write a program that allows the user to enter the number of rooms to be painted and the price of the paint per gallon. It should also ask for the square feet of wall space in each room. The program should have methods that return 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 Then it should display the data on the screen. Use: Use: 1. Use Intelli ) 2. JOptionPane Class class 3. Multiple methods a. getRooms() prompts the user for number of rooms b. getSquareFeet() calculates area of rooms C. getTotal() calculates the total for the job d. getPricePerGallon() prompts user to enter price per gallon of paint e. getPaintCost() calculates total cost of paint f. getGallons() calculates the gallon of paint g. getHours() calculates total hours h. getLabor() calculates total labor cost Example Input Input ? How many rooms to paint? 30 ? Enter the square feet for room number 1 100 OK Cancel OK Cancel Input Input ? Enter the square feet for room number 2 120 ? Enter the square feet for room number 3 130 OK Cancel OK Cancel Input x Message ? Enter the price of paint per gallon. 35 The total estimated cost is $544.78 OK Cancel OK Test Data: Use 4 rooms, 110, 120, 130 and 140 as area of rooms, $35.00 as price of a gallon of paint

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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions