Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started