Answered step by step
Verified Expert Solution
Link Copied!

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. image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

LO2 Discuss the constraints faced in a typical recruitment process.

Answered: 1 week ago

Question

4. Make recommendations on steps to take to melt the glass ceiling.

Answered: 1 week ago

Question

1. Discuss the potential legal issues that relate to training.

Answered: 1 week ago