Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Assignment 5
Old
Kirk MacLean
Junior Member
 
Status: Offline
Posts: 7
Join Date: Aug 2016
Location: Texas
Default Assignment 5 - 10-08-2016, 05:27 PM

I used the saloon from the buildings section and just put a random guy outside to ask the question. When the 21 was entered and the guy says welcome the bar doors open. I actually found this assignment to not be as hard as I thought it would be. I used and If/Else statement and used another If/Else statement inside the else statement. After reading the section of the chapter it just kinda made sense on what to do.
   
Reply With Quote
Making decisions
Old
Mauricio
Member
 
Status: Offline
Posts: 14
Join Date: Aug 2016
Default Making decisions - 10-09-2016, 06:19 PM

Kirk

I did not wanted to get over confident but I was actually surprise that is was so easy, I spent a few hours trying to figure out if I was actually doing it right, because I kept thinking it can't be this easy. But it seems that it is.
   
Reply With Quote
Old
lucyrn99
Member
 
Status: Offline
Posts: 23
Join Date: Aug 2016
Location: Dallas TX
Default 10-12-2016, 09:10 AM

Hey Kirk,

I'm asking you the same question that I asked Vaughn.. did you use 2 if/else statements or 3 statements?
I found that I couldn't get all 3 statements to display properly, if I only used 2 statements.
However, I read about 'nested' if/else statements, and thought maybe someone found a way to do it via nested statements.

Glad you found this easy - I'm sure things will get more challenging as we move further. :-)
   
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.