Forum: Java Apr 13th, 2009 |
| Replies: 4 Views: 300 cclick is a loop variable you may use it as you did in your if statement on line 3. Don't change it as you did on line 8. Changing that variable is normally the responsability of the for statement. |
Forum: Java Feb 14th, 2009 |
| Replies: 15 Views: 618 Just by looking at the output when I run your program and noticing that every number in the series was 420 higher then the previous one.
rapture : I am a 99 year old thootless, bearded bag. |
Forum: Java Feb 13th, 2009 |
| Replies: 15 Views: 618 If you add a multiple of 420 to 301 you get the next number.
So 7*420+301=3241 is a number that applies. |
Forum: Java Feb 13th, 2009 |
| Replies: 15 Views: 618 I also noticed you have not included a Read line, char, key, or something at the end. So it might be that all is happening but as soon as it does it disappears... |
Forum: Java Feb 13th, 2009 |
| Replies: 15 Views: 618 |
Forum: Java Feb 13th, 2009 |
| Replies: 15 Views: 618 If in the while loop leave out the initialisation of number=0; it should work, now you are always testing zero. |
Forum: Java Feb 7th, 2009 |
| Replies: 15 Views: 654 The point of intersection : solve two linear equations in y and x |
Forum: Java Feb 7th, 2009 |
| Replies: 15 Views: 654 From what I see you already have this should not be so hard.
For instance if two lines are parralel they must have the same slopes, if they also share a point they must be collinear. |
Forum: Java Feb 7th, 2009 |
| Replies: 15 Views: 654 If you can OO compare cars it should be easy to compare lines.
What have you got so far?
EDIT: sorry this was just posted after yours... |
Forum: Java Feb 5th, 2009 |
| Replies: 9 Views: 1,088 What is wrong with the following :
Do you want to continue, stop...(whatever)?
(Type y for "yes" and n for "no".)
Don't annoy users, by asking them to type 3 letters, and when one key is mistyped... |
Forum: Java Feb 4th, 2009 |
| Replies: 9 Views: 1,088 The program wont crash, but as long as you don't type YES,Yes,yES etc. you will stay in the do...while loop. |
Forum: Java Feb 2nd, 2009 |
| Replies: 4 Views: 348 You would write it as 6.83783E-3 |
Forum: Java Jan 30th, 2009 |
| Replies: 5 Views: 1,046 Start sending me 50000$ first. The rest of the details will be discussed afterwards. |
Forum: Java Jan 19th, 2009 |
| Replies: 45 Views: 1,794 employeeName = input.nextLine(); <--here input of emp
{
// read value for hourly wage<--here hoursWorkedInWeek is not input and still=0.0
if... |
Forum: Java Jan 19th, 2009 |
| Replies: 45 Views: 1,794 Why is it that the only thing you input is an employeeName?
What about the rest where is that put in the programs variables? |
Forum: Java Jan 19th, 2009 |
| Replies: 45 Views: 1,794 A statement after a break statement is unreachable. |
Forum: Java Jan 19th, 2009 |
| Replies: 45 Views: 1,794 Come on guys calm down!
There is more than enough shooting in the world!
Be friends!
Make love!
At that moment hoursWorkedInWeek is equal to 0.0.
You told it to be 0.0 before entering the... |
Forum: Java Jan 15th, 2009 |
| Replies: 2 Views: 432 You must also take into account the valence bond of the different elements !
For example : a you can write a simple formule like CH2 but this can never exist as an molecule on it's own. A carbon... |
Forum: Java Jan 7th, 2009 |
| Replies: 1 Views: 623 TurtleGraphics come from the LOGO programming language.
Do a search on LOGO and you will find something like this:
http://www.bfoit.org/itp/JavaTurtleGraphics.html
Hope it helps. |
Forum: Java Dec 3rd, 2008 |
| Replies: 4 Views: 1,741 So you wanna make money out of homework assignments? |
Forum: Java Nov 12th, 2008 |
| Replies: 21 Views: 1,305 dickersonka,I don't even have a sword, but I shall put it away like you did.. |
Forum: Java Nov 12th, 2008 |
| Replies: 21 Views: 1,305 Hey, hey, hey,tangaraforyou,
Did you notice?
In my signature it states Make love, no war.
The make love part does not mean that is is needed that you have to behave like most rabbits do. It really... |
Forum: Java Oct 26th, 2008 |
| Replies: 30 Views: 1,940 You have 3 pages of ideas to work with. Start working! |
Forum: Java Oct 26th, 2008 |
| Replies: 30 Views: 1,940 That's nice bahr_alhalak.
Then start doing it!
When you get stuck we will help. We are all diggers you have to do the first dig! |
Forum: Java Oct 26th, 2008 |
| Replies: 30 Views: 1,940 Hey Baaaaaaaaaaaaaaaaaaaarhhh aaaaaaaaaaaaallaaaaaaaakkaka
IIIIIIIIIIIIIIIIIII WWWWWWWWWWWWWWant to beeeeeeeeeeeeeeee YYYYYYYYYYYYoooouur frIIIend
What is your problem?
Have you any code?
Is it... |