Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   random number generator (http://www.alice.org/community/showthread.php?t=5147)

ssuttles 10-04-2010 10:18 AM

random number generator
 
Create an Alice program that uses the random number generator to create two numbers between 1 and 10. (Make the numbers on each random number to be a max of 11)
The program should print out two numbers. If the sum of the two numbers is correct, a method should be called to tell the user they got the answer correct.
If the answer is wrong, the program will execute a method to tell the user they got the answer incorrect.

ssuttles 10-04-2010 03:25 PM

I do not know how to create this program.
would you know?

debussybunny563 10-04-2010 03:58 PM

1 Attachment(s)
[SIZE="2"]Heah's what I've got so far, but I can't seem to get it to print without all this gobbly-gook in front of it. You'll see what I mean.[/SIZE]

ssuttles 10-04-2010 06:38 PM

I do see what you mean.

BTW- I just saw you had a you tube link in your signature ... so I went
I watched it .... that's pretty cool

debussybunny563 10-04-2010 06:41 PM

[SIZE="2"]Yeah, that was made by x2495ijij and it won him a contest.

Unfortunately, sigs don't support BB or HTML code, so I can't have an actual [I]link[/I], just the url for others to copy and paste.[/SIZE]

ssuttles 10-07-2010 07:55 AM

I figured it out
 
1 Attachment(s)
Thanks for your help ... I was completely lost on how to start.
But I understand better now....

PLUS I have managed to make it work and altered some as well.
Check it out ...it's attached

ssuttles 10-07-2010 09:03 AM

I just noticed some tag that says I have no common sense.
These tags are a bit unfair as I'm a newbie and trying to figure out/ learn this.

I am trying

who puts those out there and why would they say something not totally truthful?

x2495iiii 10-07-2010 02:09 PM

Those tags are not directed at you.

They're directed at people who are a bit too quick to post homework worlds when people ask.

debussybunny563 10-07-2010 02:10 PM

[SIZE="2"]I'm guessing jediaction put those in place.
:p:(:p
[/SIZE]

x2495iiii 10-07-2010 02:13 PM

Dude, no, that was me, goof.

You know you're not supposed to post homework worlds without proof the student has already attempted it themselves.


All times are GMT -5. The time now is 11:12 AM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.