Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write program in Java JGRASP 2. For this program, you MUST use procedural, modular approach (write steps in separate methods, but NOT objectoriented). If the

Write program in Java JGRASP
image text in transcribed
2. For this program, you MUST use procedural, modular approach (write steps in separate methods, but NOT objectoriented). If the program is not done by using modular approach, it receives grade 0 . A painting company estimates a painting job based on these facts: - Total square feet to be painted and price for the paint per gallon - One gallon of paint covers 115 square feet of wall area - Painting one gallon of paint takes 8 hours of labor - The company charges $18.00 per hour for labor Write a program that prompts the user to enter the total square feet and the price of the paint per gallon, and then display total square feet, number of gallons needed, hours of labor required, cost of paint, cost of labor, and total cost. The program MUST have 5 methods that RETURN the following data: - The number of gallons of paint need Hints: - What data pieces are needed? Only one, total square feet. Where is this value from? - How to use the total square feet to calculate the number of gallons? Use a parameter - The hours of labor required (is calculated based on actual paint needed) - The cost of the paint (round up number of gallons of paint needed to the nearest whole number because paint must be purposed by whole gallon. You can use ceil() method in the Math class. The ceil() returns a double value that is greater than or equal to the argument and is equal to a mathematical integer for example, 2.3 to 3.0,1.9 to 2.0, and so on) - The labor charges - The total cost of the paint job

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

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

ISBN: 1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

Find derivatives of the functions defined as follows. y = xe x

Answered: 1 week ago