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

Printable View

Show 40 post(s) from this thread on one page
Page 1 of 2 12 Last
• 04-05-2009, 09:16 AM
moostico246
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
• 04-05-2009, 09:21 AM
pbrockway2
Quote:

Originally Posted by moostico246
Full credit for a program that compiles and runs correctly.

Credit where credit's due.
• 04-05-2009, 09:25 AM
moostico246
ummm wat,,,,can u do this, yes or no???????????
• 04-05-2009, 10:07 AM
DarrylBurke
Whether he can or can't isn't the issue. The question is, can you?

db
• 04-05-2009, 10:15 AM
moostico246
1st of all fuck u, i really didnt want ur lil remarks here, 2ndlyyyy can u fuken do it, if you cant contribute and help, den go somewhere else fuckboy..
• 04-05-2009, 03:16 PM
CJSLMAN
Abuse reported. The way the forum works is that it helps people with specific Java questions or problems... it's not a "Code-R-Us" forum. The idea is that the OP learns and implements his/her own code... not get the freebie and not learn.

CJSL
• 04-05-2009, 03:41 PM
Natrix
I did it because it is good practice for me. There might be stuff done wrong and not as it should be done but at least it is working.

In the future try to do it on your own and ask when you encounter problems.
Someone else doing it for you is not the best way because you won't learn anything.
By the way: It only took me 5 minutes with the posting included which tells us that you haven't even tried.

Code:

```/* This program calculates the number of gallons of paint needed to paint a room. Programmer: Natrix Date: April 5, 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;                 int width, length, height, doors,                 int grossSquareFeet,                 // give welcome and instructions to user                 System.out.println("Welcome to the Painters Helper! );         Scanner input = new Scanner(System.in);                     System.out.println("Please enter the room's width:");         width = input.nextInt();         grossSquareFeet = height * 2 * (length + width);         netSquareFeet =  (int)(grossSquareFeet) - (int)(((doors * DOOR_SIZE) +....));         gallons = ...                         System.out.println("\nYou will need about " + gallons + " gallons of paint."); } // end of method main } // end of class PaintersHelpe```
• 04-05-2009, 04:25 PM
tomiu
Natrix i dont think is a good idea to help someone like that psycho...u can also practice without posting the solution
• 04-05-2009, 04:35 PM
Fubarable
Quote:

Originally Posted by Natrix
I did it because it is good practice for me. There might be stuff done wrong and not as it should be done but at least it is working.
In the future try to do it on your own and ask when you encounter problems.
Someone else doing it for you is not the best way because you won't learn anything.

Fine, create the code on your own, but don't post it. Don't encourage the OP's behavior! What you have done here is not good, not at all.
• 04-05-2009, 04:37 PM
Natrix
Ok I edited the code and he can do the rest on his own.
• 04-05-2009, 04:41 PM
Fubarable
Thanks for the change.

If you want a chuckle and to see another "bad" post, run my little program for the OP posted in this thread here:
http://www.java-forums.org/advanced-...7930-help.html
• 04-05-2009, 04:46 PM
Natrix
I love it. :)
• 04-06-2009, 02:03 AM
moostico246
thanx natrix...well im a biology major and my teachers an ass. but i appreciate the help.
• 04-06-2009, 02:04 AM
Fubarable
edit: nevermind
• 04-06-2009, 02:12 AM
moostico246
can u do this code?
• 04-06-2009, 02:17 AM
Fubarable
Sure, I can do it easily, so can Natrix, so can Darryl, etc...

The issue is, can you do it. We won't do it for you, of course, and vague or general questions are usually answered with links to a tutorial, but we can help answer specific questions. Though your behavior to Darryl leaves a lot to be desired and will surely motivate many of us not to help you until we see some change and an apology.
• 04-06-2009, 02:21 AM
moostico246
im not really a computer freak lke u, but im juss tryena get dis assignment out da way so i could study for some other reall classes...so can u HELP me with my code, its a YES or NO...and if not, dont try ta get smart here..perioddd
• 04-06-2009, 02:26 AM
Fubarable
Quote:

and if not, dont try ta get smart here..perioddd
Listen squirt, you're asking for free help here, meaning you don't get to dictate the terms. You're also doing your best to act like a total jerk, so I doubt you'll get anyone here to do your coding for you, much less give you the time of day. Why don't you just pull on your big-boy pants and learn to do your work on your own.
• 04-06-2009, 02:29 AM
moostico246
look ur juss a fat white boy, anyways if anyones out there can u help me out here
• 04-06-2009, 02:31 AM
Fubarable
I'll help you out: It's obvious that you haven't put in any effort into it and are showing no inclination of doing so in the future. So why not just drop the class?
Show 40 post(s) from this thread on one page
Page 1 of 2 12 Last