Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Making Decisions
Old
rkhorn
Junior Member
 
Status: Offline
Posts: 8
Join Date: Dec 2017
Default Making Decisions - 12-16-2017, 09:20 PM

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.
   
Reply With Quote
making decisions
Old
AguiJu
Junior Member
 
Status: Offline
Posts: 11
Join Date: Dec 2017
Location: Dallas
Default making decisions - 12-16-2017, 11:18 PM

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!
   
Reply With Quote
Reply


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.