just a hint needed here.. this is the start of psuedocode i need to
convert into java:
Roll a 12 sided die to choose a number in the range 1.....12
While the user has not made an incorrect guess
Ask the uer to guess whether they think the next number will be higher
or lower
it goes on to other topics but i was just wondering if anyone knew how
to begin, especially the prediction or random output of a number by the
computer..
if anyone can help then that'd be grand
Robert M. Gary - 23 Nov 2005 19:22 GMT
Start with java.sun.com Docs are in
http://java.sun.com/j2se/1.5.0/docs/api/
You will probably end up using the class Random.
I feel like I'm doing your homework for you.
Roedy Green - 23 Nov 2005 21:27 GMT
On 23 Nov 2005 10:27:36 -0800, "patrick_woflian"
<gingercrock@hotmail.com> wrote, quoted or indirectly quoted someone
who said :
>Roll a 12 sided die to choose a number in the range 1.....12
>While the user has not made an incorrect guess
see http://mindprod.com/jgloss/multiposting.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Joan - 24 Nov 2005 18:31 GMT
> just a hint needed here.. this is the start of psuedocode i
> need to
[quoted text clipped - 5 lines]
> higher
> or lower
How many points for this homework problem?
> it goes on to other topics but i was just wondering if anyone
> knew how
[quoted text clipped - 4 lines]
>
> if anyone can help then that'd be grand