Problem Statement:
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 $20.00 per hour for labor.
Develop a Java program that performs the following:
Input Requirements:
Set up the data for the following as named constants for one gallon of paint:
- 115 square feet of wall space
- eight hours of labor
Also, set up a named constant for the following:
- $20.00 per hour for labor
Enter the following input data at the keyboard:
- The square feet of wall space to be painted
- The price of the paint per gallon
Processing:
Your program is to perform the following calculations:
- 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
Output Requirements:
- The square feet of wall space to be painted
- The price of the paint per gallon
- 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
NOTE: Precede each of the above output data items with an appropriate message.
For instance, if the user entered 3000 square feet of wall space during the inputting, then
display the following: 3000 square feet of wall space needs to be painted.
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 1 images
- C++ Program Create a program that will prompt me for each of the following items: 1. Date of Birth 2. Typical wake up time 3. Next Dentist Appointment. ( Date and Time) Create a Date structure and a method to load and return the date structure. Create a Time-of-day structure and a method to load and return the Time-of-day structure. Create a DateTime structure that includes the Date and Time-Of-Day structure. The Date structure should include year, month, day. The Time-of-day structure should include hour and minute. Use these structures and apply them to the processing of the input of the 3 items listed above. Display the structured data for each of the 3 listed data items. Avoid redundancy where possible ( In other words, avoid duplicated code and write method(s) as needed to avoid duplication). This primarily applies to the processing of item 3.arrow_forward2 In some situations a typedef cannot be replaced by a #define. Consider the fol- lowing program: typedef float int main(void) { DOLLARS { } return 0; DOLLARS; amount = 100.00, interest = 0.07 amount; float DOLLARS; DOLLARS = amount + interest; printf("DOLLARS = %.2f\n", DOLLARS); DOLLARS } Execute this program so that you understand its effects. If the typedef is replaced by the line #define /* new block */ floatarrow_forwardExplain how cleaning could be used to solve this problem Language used is Javaarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education