Assignment 5
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.
|
Making decisions
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. |
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. :-) |
All times are GMT -5. The time now is 03:53 AM. |
Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.