Alice Community

Alice Community (
-   How do I...? (
-   -   Big Rank help (

mnstr8401 07-07-2011 07:21 PM

Big Rank help
1 Attachment(s)
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.

TauTrumpsPi 07-07-2011 07: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).

mnstr8401 07-08-2011 02:11 PM

Thank you very much for your help.

TauTrumpsPi 07-08-2011 04:15 PM

No problem. Glad to be of assistance.

All times are GMT -5. The time now is 10:53 PM.

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