hello i need help, i juss want da codes, so i could practice...ya digggg
Create the Java code to implement the pseudocode. You will need to devise names and types for most of the variables you need (I start you with one).
Full credit for a program that compiles and runs correctly.
/* This program calculates the number of gallons of paint
needed to paint a room.
Programmer: jack
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