APlusGrades

Not Rated (0)

$15/per page/Negotiable

About APlusGrades

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing,Foreign Languages,Geography,Geology,Health & Medical,HR Management,Law,Management,Physics,Programming,Science,Statistics Hide all
Teaching Since: Jul 2017
Last Sign in: 364 Weeks Ago, 5 Days Ago
Questions Answered: 1850
Tutorials Posted: 1850

Education

  • Graduate in Biology and Nutrition, MBA Finance
    Florida State University
    Aug-2000 - Jul-2007

Experience

  • Ass. Relationship Manager
    Penn-Florida
    Mar-2009 - Feb-2016

Category > Computer Science Posted 19 Jul 2017 My Price 11.00

I feel so dumb I can't figure this out.20 Debugging: Painting a wall (Java) Download the PaintEstimator.java file from Blackboard.

I need help badly with a java code question...I feel so dumb I can't figure this out...

 

2.20 Debugging: Painting a wall (Java)

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)

 

L Lab Submission 2.20.1:Debugging: Painting a wall (Java)

Instructions Deliverables PaintEstimator.java We will expect the above file(s) to be submitted Compile command javac PaintEstimator.java -Werror We will use this command to compile your code Submit your files below by dragging and dropping into the area or choosing a file on your hard drive. PaintEstimator.java Drag files to left, or choose file... SUBMIT FOR GRADING SUBMITTED: 09:33 PM ON 01/12/17 Total: 0/5 1. Compare output 0/2
Input 12 15
Your output starts with Exception in thread "main" java.lang.NoClassDefFoundError: PaintEstimator (wrong name: paintestimator/PaintEstimator) at java.lang.ClassLoader.defineClass1(
Expected output starts with Enter wall height (feet): Enter wall width (feet): Wall area: 180.0 square feet
2. Compare output 0/1
Input 12 15
Your output starts with Exception in thread "main" java.lang.NoClassDefFoundError: PaintEstimator (wrong name: paintestimator/PaintEstimator) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.jav
Expected output starts with Enter wall height (feet): Enter wall width (feet): Wall area: 180.0 square feet Paint needed: 0.5142857142857142 gallons
3. Compare output 0/1
Input 12 15
Your output Exception in thread "main" java.lang.NoClassDefFoundError: PaintEstimator (wrong name: paintestimator/PaintEstimator) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:803) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:442) at java.net.URLClassLoader.access$100(URLClassLoader.java:64) at java.net.URLClassLoader$1.run(URLClassLoader.java:354) at java.net.URLClassLoader$1.run(URLClassLoader.java:348) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:347) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Expected output Enter wall height (feet): Enter wall width (feet): Wall area: 180.0 square feet Paint needed: 0.5142857142857142 gallons Cans needed: 1 can(s)
4. Compare output 0/1
Input 20 50
Your output Exception in thread "main" java.lang.NoClassDefFoundError: PaintEstimator (wrong name: paintestimator/PaintEstimator) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:803) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:442) at java.net.URLClassLoader.access$100(URLClassLoader.java:64) at java.net.URLClassLoader$1.run(URLClassLoader.java:354) at java.net.URLClassLoader$1.run(URLClassLoader.java:348) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:347) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Expected output

Enterwall height (feet): Enter wallwidth(feet):Wallarea:1000.0 squarefeetPaint needed: 2.8571

Answers

Not Rated (0)
Status NEW Posted 19 Jul 2017 12:07 PM My Price 11.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----------- ch-----------at -----------I a-----------m Â----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I

Not Rated(0)