The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 408 Weeks Ago, 3 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
For this assignment, we will use java languege, methods with parameters and return values to decompose a complex problem into simpler parts. The object is to calculate the cost of a paint job A painting company has determined that for every 112 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $35.00 per hour for labor. Modify your program so that it prints all values of money as numbers with exactly 2 decimal places. To generate report values for money that have exactly two decimal places, use System.out.printf . Complete the program named PaintJobEstimator.java so that it will display the following data:
The number of gallons of paint required (This is an integer value. You canA????1t buy a partial gallon.)
The hours of labor required. (This is a floating-point value. You can have a fraction of an hour of work.)
The cost of the paint. (This should be in dollars and cents, i.e., 2 decimal places.)
The labor charges. (This should be in dollars and cents, i.e., 2 decimal places.)
The total cost of the paint job. (This should be in dollars and cents, i.e., 2 decimal places.)
Expected Output:
Enter the number of square feet: 224
Enter the price of a gallon of paint: 20
To paint 224.00 square feet, with paint that costs 20.00 per gallon,
you will need 2 gallons of paint and 16.00 hours of labor.
The cost of the paint is: 40.00
The cost of the labor is: 560.00 The total cost of the job is: 600.00
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------