Alice Community  

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

Reply
 
Thread Tools Display Modes
Ranking and having numbers match with names
Old
graficdes9er
Guest
 
Status:
Posts: n/a
Default Ranking and having numbers match with names - 03-01-2010, 06:39 PM

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.
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 577
Join Date: Nov 2008
Location: In the interwebs
Default 03-01-2010, 07:36 PM

There's an active thread about this here.


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
I love this community
Old
Lodemai
Guest
 
Status:
Posts: n/a
Talking I love this community - 03-27-2010, 10:11 PM

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.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 03-28-2010, 08:43 AM

Just ask if you have any other questions


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
loop
Old
crashkarz21
Guest
 
Status:
Posts: n/a
Default loop - 05-26-2010, 09:24 AM

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??
   
Reply With Quote
answer
Old
crashkarz21
Guest
 
Status:
Posts: n/a
Default answer - 05-26-2010, 09:31 AM

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
   
Reply With Quote
Help!!!
Old
medinra
Guest
 
Status:
Posts: n/a
Exclamation Help!!! - 10-16-2010, 10:13 AM

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.

Last edited by medinra; 10-19-2010 at 02:27 PM.
   
Reply With Quote
Reply

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 ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.