Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Ranking and having numbers match with names (http://www.alice.org/community/showthread.php?t=4005)

graficdes9er 03-01-2010 06:39 PM

Ranking and having numbers match with names
 
Help How do I do this. Here is what we are doing

Create a world that asks the user to enter a rank (a number
between 1 and 12) for the Big 12 college basketball teams. A character of your
choice (People) should then associate that rank to the name of a team, using the table below. The person should then say the rank and the team name. If the rank entered is not between 1 and 12, the person should say that the number entered was invalid. Either way, the method should ask the user if he or she wishes to enter another rank. If the user selects Yes, the above steps should repeat. Otherwise, the method should end.

zonedabone 03-01-2010 07:36 PM

There's an active thread about this [URL="http://alice.org/community/showthread.php?t=4003"]here[/URL].

Lodemai 03-27-2010 10:11 PM

I love this community
 
Thank you everyone, from reading these threads I was able to figure out my assignment. It may not be the prettiest but I starting to get the basics. :p:p:p

jediaction 03-28-2010 08:43 AM

Just ask if you have any other questions

crashkarz21 05-26-2010 09:24 AM

loop
 
I have a World where I ask the user if they want to repeat the above steps with a yes or no question. If they say NO then the world ends, if they say YES I need it to loop back to the beginning to play all over again. I can not figure out the loop, can anyone help??

crashkarz21 05-26-2010 09:31 AM

answer
 
Here is how it matches up with the entered number, I cant figure out how to loop it back.... i need to replace "Sorry i cant figure it out" in my code with a loop to start at beginning... any one know!?

world.my first method ( )
Rank = 1 , RankList = , Ask = true
Rank set value to ( ask user for a number question = Enter a rank: )
If ( Rank < 1 )
Mikey say Invalid Number duration = 3 seconds fontName = comic sans ms fontSize = 25
Else
If ( Rank > 12 )
Mikey say Invalid Number duration = 3 seconds fontName = comic sans ms fontSize = 25
Else
Do together
Mikey say ( item Rank from RankList ) duration = 3 seconds fontName = comic sans ms fontSize = 25
Mikey.bounce
Ask set value to ( ask user for yes or no question = Whould you like to enter another rank? )
If Ask
Do together
Mikey.bounce
Mikey say Sorry can't figure that out! fontSize = 25 fontName = comic sans ms

medinra 10-16-2010 10:13 AM

Help!!!
 
I am needing help with the same assignment of big 12 ranking. I have put together a animation, but something it's missing because the animation suppose to ask the user to enter a number from 1 to 12 and after the user enters it, it will re-ask if he wants to continue and if the user press yes it wil continue, if it press no then it will say goodbye, but that's where am stuck. This is what I got, if anyone can help, I will appreciate it greatly.


All times are GMT -5. The time now is 09:45 PM.

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