![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#41 |
|
Sexy Programmer
|
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! |
|
|
|
|
|
#42 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#43 |
|
Sexy Programmer
|
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! |
|
|
|
|
|
#44 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#45 |
|
Expert Programmer
|
[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 |
|
|
|
|
|
#46 |
|
Sexy Programmer
|
create an IM client! :-P
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#47 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 747
Rep Power: 3
![]() |
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. |
|
|
|
|
|
#48 |
|
Programmer
|
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 |
|
|
|
|
|
#49 |
|
Expert Programmer
|
@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 |
|
|
|
|
|
#50 |
|
Expert Programmer
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|