Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
random number generator
Old
ssuttles
Guest
 
Status:
Posts: n/a
Default random number generator - 10-04-2010, 11:18 AM

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.
   
Reply With Quote
Old
ssuttles
Guest
 
Status:
Posts: n/a
Default 10-04-2010, 04:25 PM

I do not know how to create this program.
would you know?
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Arrow 10-04-2010, 04:58 PM

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.
Attached Files
File Type: a2w help02.a2w (176.1 KB, 22 views)


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Old
ssuttles
Guest
 
Status:
Posts: n/a
Default 10-04-2010, 07: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
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Thumbs up 10-04-2010, 07:41 PM

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 link, just the url for others to copy and paste.


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
I figured it out
Old
ssuttles
Guest
 
Status:
Posts: n/a
Default I figured it out - 10-07-2010, 08:55 AM

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
Attached Files
File Type: a2w randNum.a2w (759.1 KB, 29 views)
   
Reply With Quote
Old
ssuttles
Guest
 
Status:
Posts: n/a
Default 10-07-2010, 10: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?
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 10-07-2010, 03: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.
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Thumbs down 10-07-2010, 03:10 PM

I'm guessing jediaction put those in place.



Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 10-07-2010, 03: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.
   
Reply With Quote
Reply

Tags
homework, no common sense, plagiarism, too much help

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



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