Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 15th, 2006, 8:55 PM   #41
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
yeah man! I dont understand why I didnt think of that! thx tho!
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Feb 15th, 2006, 8:56 PM   #42
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
your welcome! more ideas!!?!?!?!?!?!? NEXT~
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Feb 15th, 2006, 9:00 PM   #43
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
write a program thats prompts the user for the number of gallons of gas in the tank of one's car, fuel efficiency in mpg(miles per gallon), and the price of gas per gallon!

then return how far the car will be able to go with the gas in the tank! and how many the gas is worth in the user's tank!

I just did this one!
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Feb 15th, 2006, 9:11 PM   #44
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
i wrote something very similiar... i will do this though.
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Feb 15th, 2006, 10:13 PM   #45
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
[php]
import java.util.Scanner;

public class mpg
{
public static void main(String args[])
{
Scanner input=new Scanner(System.in);

int MPG=0,gasInTank=0,tempMPG;
double gasPrice=0,totalCost;

System.out.print("How much gas do you have(gallons)? ");
gasInTank=input.nextInt();

System.out.print("What is your vehicles efficiency(mpg)? ");
MPG=input.nextInt();

System.out.print("How much did you pay for gas(per gallon)? $");
gasPrice=input.nextDouble();

System.out.printf("Your car will drive %d miles before you run out of gas.\n",(MPG*gasInTank));
System.out.printf("You spent $%.2f on gas.\n",(gasPrice*gasInTank));
}
}
[/php]

there you go :p

NEXT!!!
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Feb 15th, 2006, 11:05 PM   #46
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
create an IM client! :-P
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Feb 16th, 2006, 1:28 AM   #47
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 747
Rep Power: 3 Jimbo is on a distinguished road
If you get tired of just simple apps, you might look around at some school websites and see if they have any assignments posted. Sometimes you can find some interesting and/or fun projects to work on.

And don't be afraid to start building Swing GUIs. Its really not that hard at all, although it might require looking at a few javadocs.
Jimbo is offline   Reply With Quote
Old Feb 16th, 2006, 9:30 AM   #48
JDStud6
Programmer
 
Join Date: Jan 2005
Location: Charleston, SC www.wareonearth.com
Posts: 57
Rep Power: 4 JDStud6 is on a distinguished road
Send a message via AIM to JDStud6
why not try some file access. There was one around here recently that counted the number of each letter and printed it to the screen. So you'd have a TXT file that just says "the poop" inside and when you run your java program it prints out:

e: 1
h: 1
o: 2
p: 2
t: 1

or you could have it print out all the other letters and 0's next to them.

JD
JDStud6 is offline   Reply With Quote
Old Feb 16th, 2006, 12:25 PM   #49
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
@Jimbo: i have worked with swing GUIs at school! Just have got as far as putting components on a frame.

@JDStud: i guess i could take Jimbo's swing GUI idea and your idea and combine them! Going to take some research but i will post here when im done.
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Feb 16th, 2006, 12:26 PM   #50
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
can someone post an example of arrays in java and how do basically use them. Im told it is different from C++.
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:06 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC