Tuesday, November 2, 2010

Yay! Mr. Boole! (NOV/02/2010)

Happy birthday, George Boole! Today we learned about case statements, another way to provide selection to the user. I learned about if statements, and case statements are similar but they make it more efficient and reader-friendly when there are multiple statement in one set. It is up to the programmer to decide which one to use whether it is a case statement or a selection statement. However, case statements won't work with "real". It must be the datatypes: "int", "string", or "chr". We learned three new keywords today: case, label, of.

For homework, we are required to complete the ATM outline provided on touque.ca, and modify the code to guard against negative balances.

Tomorrow is "Take Your Kids to Work Day!" Yay! I will be spending the morning at my mom's office located at Kennedy and Steeles, and the rest of the day at my home- which is also where my mother's "office" is located. Yes, my mother operates her business at our home as well.

Looking forward to tomorrow!

No comments:

Post a Comment