[SOLVED] hello, java program with 2 errors, help
Hi I am trying to compile and run this file but there is two errors: here is the original assignment but I did the rest.
/* This program calculates the number of gallons of paint needed to paint a room.
Programmer:
Date: March 31, 2009
*/
import java.util.Scanner;
public class PaintersHelper {
static float DOOR_SIZE = 15.0f;
static float SMALL_WINDOW_SIZE =2.0f;
static float LARGE_WINDOW_SIZE = 5.0f;
static float SQ_FT_PER_GALLON = 375.0f;
public static void main(String[] args) {
// declare all variables to be used (I provide one to get you started.)
int gallons;
// give welcome and instructions to user
// prompt user for the room's width
// prompt user for the room's length
// prompt user for the room's height
// prompt user for the number of doors
// prompt user for the number of small windows
// prompt user for the number of large windows
// gross square feet = height * 2 * (length + width)
// subtractions is the sum of:
// number of doors * door size
// number of lgWindows * lgWindow size
// number of smWindows * smWindow size
// net square feet = gross square feet - subtractions
// gallons = netSqFt / SQ_FT_PER_GALLON rounded to the nearest gallon
// display the answer.
System.out.println("\nYou will need about " + gallons + " gallons of paint.");
} // end of method main
} // end of class PaintersHelper