Programming Forums
User Name Password Register
 

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

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old May 6th, 2008, 11:49 PM   #11
cribbageman2500
Newbie
 
Join Date: Apr 2008
Posts: 8
Rep Power: 0 cribbageman2500 is on a distinguished road
Re: New to programming and in over my head!

Sorry about the long delay in my response. Long story short Im now working on it in Java using the net beans IDE Freaky Chris suggested, thank you for that by the way.

As far as the basic logic for the program I was thinking:
Variables:
dice=
thresh=
again=
gen=0
tally=0

num1 = (Math.Random()*10) + 1; add one to gen
if num1 >= again add one to dice and one to tally
else
if num1 >= thresh add one to tally
else
if num1 <= thresh ignore
until
gen=dice
display tally

and thats that, I think that that basic flow of logic should work, its just a matter of putting it all into real code. If you notice any huge errors in my logic please let me know.

Thank you,
Cribbageman
cribbageman2500 is offline   Reply With Quote
 

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 8:27 AM.

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