Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

psuedocode to java..

Thread view: 
patrick_woflian - 23 Nov 2005 18:27 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.