Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   The Lounge (http://www.alice.org/community/forumdisplay.php?f=4)
-   -   Making Decisions (http://www.alice.org/community/showthread.php?t=11849)

rkhorn 12-16-2017 10:20 PM

Making Decisions
 
This assignment had me create a scene in front of a club where a bouncer asks how old you are, and then, depending on your answer, tells you if you're too old, too young, or are welcome in the club. You have to be exactly 21 to get the welcome message.

This assignment was straight-forward and had me utilize a variable, and then use an if/else statement to determine what the bouncer's output to the user would be based on the user's answer. In this case, I used a nested if/else since there were three possible outputs.

I was looking forward to getting to if/else because you really begin to have to think about how to execute what you have in mind to create.

AguiJu 12-17-2017 12:18 AM

making decisions
 
I really liked this assignment, I have some background in c++ and Java and if else and nested if else statements are may favorite. Glad you enjoyed it as well!:D


All times are GMT -5. The time now is 02:56 PM.

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