Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Hello I need help with the following question..20 Debugging: Painting a wall (Java)

Students:

This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have any technical issues with the zyLab submission system, use the “Trouble with lab?” button at the bottom of the lab.

Need assignment help for this question?

If you need assistance with writing your essay, we are ready to help you!

OUR PROCESS

Order

Payment

Writing

Delivery

Why Choose Us: Cost-efficiency, Plagiarism free, Money Back Guarantee, On-time Delivery, Total Сonfidentiality, 24/7 Support, 100% originality

Instructor notes

While you will be submitting this assignment through Zybooks, make sure you are still applying appropriate formatting and in-line commenting.

Download the PaintEstimator.java file from Blackboard. This program has five (5) errors in it that require you to debug it. Watch the video on Using the Netbeans Debugger then use your IDE to debug and fix this program. As you find an error, be sure to document what you changed using in-code commenting. Upload the file here to be checked. Below is an explanation of how the program should work.

(1) Prompt the user to input a wall’s height and width. Calculate and output the wall’s area. (Submit for 2 points).

Enter wall height (feet): 12
Enter wall width (feet): 15
Wall area: 180.0 square feet

(2) Extend to also calculate and output the amount of paint in gallons needed to paint the wall. Assume a gallon of paint covers 350 square feet. Store this value using a const double variable. (Submit for 1 points, so 3 points total).

Enter wall height (feet): 12
Enter wall width (feet): 15
Wall area: 180.0 square feet
Paint needed: 0.5142857142857142 gallons

(3) Extend to also calculate and output the number of 1 gallon cans needed to paint the wall. Hint: Use a math function to round up to the nearest gallon. (Submit for 2 points, so 5 points total).

Enter wall height (feet): 12
Enter wall width (feet): 15
Wall area: 180.0 square feet
Paint needed: 0.5142857142857142 gallons
Cans needed: 1 can(s)
 
"Looking for a Similar Assignment? Order now and Get 10% Discount! Use Code "Newclient"