Question: I was provided with a bad code to fix, i need to fix this in NetBeans IDE, could someone assist me on fixing this code

I was provided with a bad code to fix, i need to fix this in NetBeans IDE, could someone assist me on fixing this code with a screen shot and a copy of the fixed code for me to figure out. I was provided with a bad code to fix, i need to

import java. util.Scanner; import java. lang Math; // Not: Needed for math functions public static void main (String args) 8canner scnr ne 8canner (System. in); double wallHeight 0.0 double vallnidth 0.0 double wal !Area = 0-0; double gal lons?aintleeded = 0.0; int canslie eded 0; 350-0; final double 5qua re FeetPerG allon final double gallons PerCan 1.0 ystem-out -println("Enter all height (Eet wallHe ight scnr nextDouble ) // Prompt user to input wall' width ystem-out -println("Enter all width feet) wallHe ight scnr nextDouble ) // Calculate and output all area ystem-out -println"Wall area: square feet I Calculate and output the amount of paint in gallons needed to paint the wall gallonsPaintNeededallaArea/squareFeetPerGallons 8ystem out-println ("Paint needed: +gallonspaintneeded+ gallon") to paint the vall, rounded up to nearest integer this line is missing two operations can ()) / Calculate and output the number of 1 gallon cans needed cansNe ededgallons PaintNeeded gallonsPerCan; //Hint: 8ystem.out println "Cans needed:+cansNeeded return

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!