Alice Community

Alice Community (
-   The Lounge (
-   -   Lab 2 (

smileysand 07-27-2015 09:55 PM

Lab 2
Oh my i have completed but could not figure out how to do the bonus. I tried creating a string list for the different yes. The problem with the string list when you put in a call method it will ask for the first or the last of the string list. This was quite challenging by far. Was anyone able to do the bonus. An how many statements did everyone have. Were they able to consolidate statements?

shaolinkidd 07-27-2015 10:14 PM

Lab 2
I was able to accomplish the same thing a different way. I created a pop-up box with the choices 'Yes' and 'No'. If you click 'Yes' loop continues, if 'No' it stops.

Just stumbled on this by exploring, I didn't even attempt the Yes, yes, YES method!

Diary0926 07-27-2015 10:49 PM

Unfortunately I suffered the same fate. I believe that part is too advanced for me. I was able to complete everything else though.
Loops are becoming easier to use.

Petit Suisse 07-28-2015 03:27 AM

That's great. The bonus is a bonus for a reason I suppose, but in terms of the logic of how to do it, think of it this way...

You have already asked the user if they want to repeat the program, and if they input "yes" your while loop continues.

In the bonus you want to give them an option so they can input EITHER yes OR YES OR Yes.

In the same place you defined "while statement true", you can pick "logic". This will give you the option to add criteria, such as either yourVariable == yes or yourVariable == Yes or yourVariable == YES.

Have a play with the logic option and see how it goes. There might be other ways, but that way worked for me.

Good luck playing!

All times are GMT -5. The time now is 03:55 AM.

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