PaintEstimator.java - /Rashawn Harrison/IT145/2.15.1...

This preview shows page 1 out of 1 page.

//Rashawn Harrison //IT145 //2.15.1: Debugging: Painting a wall (Java) // September 19, 2016 import java.util.Scanner; import java.lang.Math; // Note: Needed for math functions public class PaintEstimator { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); double wallHeight = 0.0; double wallWidth = 0.0; double wallArea = 0.0; double gallonsPaintNeeded = 0.0; int cansNeeded = 0; final double squareFeetPerGallons = 350.0; final double gallonsPerCan = 1.0; System.out.println("Enter wall height (feet): "); wallHeight = scnr.nextDouble(); // Prompt user to input wall's width System.out.println("Enter wall width (feet): "); wallHeight = scnr.nextDouble();

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture