View Full Version : Assignment 5

Kirk MacLean
10-08-2016, 06: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.

10-09-2016, 07:19 PM

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.

10-12-2016, 10: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. :-)