Alice Community  

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

Reply
 
Thread Tools Display Modes
Big Rank help
Old
mnstr8401
Junior Member
 
mnstr8401's Avatar
 
Status: Offline
Posts: 7
Join Date: Jun 2011
Location: Anza, California
Default Big Rank help - 07-07-2011, 06:21 PM

This is the assignment: "Big 12 Ranking: 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.

Rank Team Name
1 Kansas Jayhawks
2 Oklahoma Sooners
3 Missouri Tigers
4 Nebraska Cornhuskers
5 Texas Longhorns
6 Iowa State Cyclones
7 Texas A&M Aggies
8 Texas Tech Red Raiders
9 Oklahoma State Cowboys
10 Colorado Buffaloes
11 Kansas State Wildcats
12 Baylor Bears

I am not sure if i am doing it right and what to do next.
Attached Files
File Type: a2w Rank.a2w (519.4 KB, 163 views)


Irene
(A.K.A mnstr8401)
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 07-07-2011, 06:37 PM

It looks good so far. To make it possibly ask again, use a while statement around everything but the original asking question, and ask again at the end of the while statement (but still inside it), ask again, and have the condition of the while statement be (while yesorno == true).


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Answer
Old
mnstr8401
Junior Member
 
mnstr8401's Avatar
 
Status: Offline
Posts: 7
Join Date: Jun 2011
Location: Anza, California
Default Answer - 07-08-2011, 01:11 PM

Thank you very much for your help.


Irene
(A.K.A mnstr8401)
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 07-08-2011, 03:15 PM

No problem. Glad to be of assistance.


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.