# hello i need help, i juss want da codes, so i could practice...ya digggg

Show 40 post(s) from this thread on one page
Page 2 of 2 First 12
• 04-06-2009, 02:37 AM
moostico246
its an elective ,im a biology MAJOR,,do u understandddd
• 04-06-2009, 03:30 AM
pbrockway2
Quote:

Originally Posted by moostico246
its an elective ,im a biology MAJOR,,do u understandddd

I prefer to think you're just another boring troll.

The alternative - that you might be a tertiary student - is just too depressing.
• 04-06-2009, 03:36 AM
moostico246
i didnt understand a word u said , juss get out ur no help here, someone help me with dis: i got dis so far

The unit for all inputs is feet. The result of the calculation will be in square feet.

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)
{
int gallons = 0;
int roomWidth = 0;
Scanner input = new Scanner(System.in);
System.out.println("Hello, and welcome to the Painter's Helper Program");
System.out.print("Please enter the room's width: ");

String widthStr = input.nextLine();
try
{
widthStr += " feet";
roomWidth = Integer.parseInt(widthStr);
}
catch (NumberFormatException e)
{
ShowErrorMessage();
}
// 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

System.out.println("\nYou will need about " + gallons
+ " gallons of paint.");
} // end of method main

{
String[] strArray = new String(PaintHelperErrorArray).split(" ");
int delay = 400;
for (;;)
{
for (String string : strArray)
{
System.out.print(string + " ");
try
{