Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Apr 25th, 2008, 6:27 PM   #1
cribbageman2500
Newbie
 
Join Date: Apr 2008
Posts: 8
Rep Power: 0 cribbageman2500 is on a distinguished road
New to programming and in over my head!

Like the title suggests, I haven't done any real programming before, but out of minor necessity I was driven to attempt to make a small program.

So far Ive determined what i want the program to do and some basic Ideas for how to accomplish it. But I have no idea how to actually create the program.

My basic plan was to create a highly adjustable d10 simulator. I was originally trying to do i thorough Java but my computer refuses to allow the javac command which leaves me dead in the water on java. My next thought was to run the program through Excel and thereby VB.

The actual program needed to generate X #of random integers between 1 and 10, and output them to a column, then reference that column and for all values Z and greater generate another integer until no new integers needed to be generated. Then it would reference the column one last time to tally all values Y and greater.
The values X, Y, and Z would be equal to the values in 3 cells in the spread sheet.

The more I fail at getting this to work the more I'm beginning to believe it isn't possible. if anyone can help me with the program or just general tips it would be much appreciated.

Thank you,
Cribbageman
cribbageman2500 is offline   Reply With Quote
Old Apr 25th, 2008, 6:35 PM   #2
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 545
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: New to programming and in over my head!

>>My basic plan was to create a highly adjustable d10 simulator
That was your first big mistake. Trying to bite off a chunk too big for you. You have to start small -- very very small -- just like they want to do on Deal Or No Deal. Find yourself a tutorial that just teaches the very basics and the gradually increases in complexity. Or better yet buy an introduction to <whatever programming languag you choose> book.

Its like building a house. If you don't know the difference between a hammer and a screwdriver you won't be able to build a house. You have to learn the basics first.
__________________
True Terror is to wake up one morning and discover that your high school class is running the country - Kurt Vonnegut Jr.
Ancient Dragon is offline   Reply With Quote
Old Apr 25th, 2008, 8:34 PM   #3
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 272
Rep Power: 2 Jabo is on a distinguished road
Re: New to programming and in over my head!

Quote:
Originally Posted by cribbageman2500 View Post
but my computer refuses to allow the javac command
Sounds like you need to put the JDK directory in your path environment variable, which the JDK setup instructions tell you how to do if you took the time to read it.
Jabo is offline   Reply With Quote
Old Apr 26th, 2008, 6:19 AM   #4
Grich
Hobbyist Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 195
Rep Power: 2 Grich is on a distinguished road
Re: New to programming and in over my head!

This is probably going to sound dumb, but what is a "highly adjustable d10 simulator"?
__________________
SYNTAX ERROR ...
Grich is offline   Reply With Quote
Old Apr 26th, 2008, 7:04 AM   #5
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 545
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: New to programming and in over my head!

Quote:
Originally Posted by Grich View Post
This is probably going to sound dumb, but what is a "highly adjustable d10 simulator"?
Probably an airplain simulator or maybe a train simulator
__________________
True Terror is to wake up one morning and discover that your high school class is running the country - Kurt Vonnegut Jr.
Ancient Dragon is offline   Reply With Quote
Old Apr 26th, 2008, 7:37 AM   #6
Grich
Hobbyist Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 195
Rep Power: 2 Grich is on a distinguished road
Re: New to programming and in over my head!

Cool, thanks Ancient Dragon. I've heard of simulators that do stuff like that but didn't know what it was actually called. You learn something new everyday.
__________________
SYNTAX ERROR ...
Grich is offline   Reply With Quote
Old Apr 26th, 2008, 8:03 AM   #7
glimmy
Programmer
 
glimmy's Avatar
 
Join Date: May 2005
Location: Minnesota
Posts: 42
Rep Power: 0 glimmy is on a distinguished road
Send a message via AIM to glimmy
Re: New to programming and in over my head!

Is it a train simulator? It sounds like he is trying to make a 10 sided die simulator, similar to the d20 system.

http://en.wikipedia.org/wiki/D20_System
glimmy is offline   Reply With Quote
Old Apr 26th, 2008, 3:48 PM   #8
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!

It is a ten sided Die simulator, sorry about the confusion, its based on the system white wolf publishing uses in their RPGs.

Oh and as far as the JDK thing goes, i have added the jkd bin folder to my variables, as well as about 2 other potential fixes for the issue, and for some reason my computer just hates it, its a pretty quirky machine anyways (like how the command prompt wont close unless you ctrl+alt+del it, just to name one) so I'm not actually surprised.

And thank you ancient dragon, I know i SHOULD start easy...but my impatience has gotten the better of me.
cribbageman2500 is offline   Reply With Quote
Old Apr 26th, 2008, 4:04 PM   #9
Freaky Chris
Professional Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 269
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: New to programming and in over my head!

you could always just use an IDE like netbeanz or eclipse...if you can't get the javac to work. If impatience has gotten the better of you then frustration will also when you realise yu need to go back and start small.

hope you do find away of completing your task anyway

Chris
__________________
Steven Skiena - Algorithms
Freaky Chris is offline   Reply With Quote
Old May 6th, 2008, 4:11 PM   #10
jamesdman
Newbie
 
Join Date: Apr 2005
Location: NC,USA
Posts: 17
Rep Power: 0 jamesdman is on a distinguished road
Re: New to programming and in over my head!

When you set the class path did you add a >;< at the end? On my PC it must have that even though I never seen instructions say that. If you don't have the patience in getting java to work you will never have the Patience to program. Programming is basically problem solving skills, and installing java can be also.
Also you need to learn the write out your solution before attempting to actually programming the problem. I'm not saying it is necessary, but most good programmer use pseudo-code and desk check their algorithms before attempting the programming task;unless its super ultra simple. The math maybe beyond your scope and putting it on paper is the easiest way to see so.
jamesdman is offline   Reply With Quote
Reply

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 3:59 AM.

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