This class, we learned a new topic; Selection!
We learned some new key words:
-if
-then
-endif
example:
if divisor = 0 then
put "Division by zero is undefined!"
else
quotient := dividend / divisor
put dividend, "/", divisor, "=", quotient
endif
We also learned that following 'then' is always the 'true part'
and that there is only 2 parts possible; the 'true part' (which is required) and the 'false part' (which is optional)
In that example i had just provided there was only 1 statement in the true part (put "Division by zero is undefined!"), while I had 2 statements in the false part (quotient := dividend / divisor , put dividend, "/", divisor, "=", quotient)
Today, we had a pop quiz! And you want to know what sucks even more? We had a fire drill in the middle of the quiz. -_- Yup! You heard me right! A fire drill in the middle of a quiz!! -_- It's so not fair for the people that didn't finish their quiz... but good thing that I'm not one of those people ;D
I actually finished earlier than i had expected. ( well... it was probably because the quiz was easy! :] *smiles* )
So yeah, I'm still doing pretty well in class (because I actually understand what Mr. Arkin was talking about! ;D )
Good luck to me~~~!!!
And good night guys~♥!!
No comments:
Post a Comment