Welcome back, Mr. Arkin!
You see, our (very much missed) teacher had been absent the previous week (Yes, all five days of school!) However, we have been working hard on our Substring Assignments. With Zarin-dono's (much-appreciated) help, I had completed all of them by Friday! (Thank goodness, because I slept in on Saturday and I went to a Christmas party on Sunday.)
So, today was an extremely shortened day. There was an early dismissal: school ended at noon! Because Mr. Arkin was away last week, he wanted to show us model answers for the Substring Assignments. Besides, we were expected to complete all of them and have all the codes printed out by today. It was sort of funny, because he showed us a model answer for Assignment #1, then realized that he hadn't taught us the for keyword yet.
And so, the lesson was postponed for another lesson: the for loop. There are times in which a programmer wants to repeat a loop a certain amount of time. In the event that he or she needs to do this, the for loop is used. (I was frustrated, because I could have used this when I was writing the Substring Assignments, and it would've saved me a lot of time.)
Here is the basic structure of a for loop
for control_variable : startValue .. endValue
put value
end for
The control_variable will increment itself by one starting from the startValue, and it will stop when the control_variable is greater than the endValue.
The control variable is not declared - the computer declares and initializes it for you.
Simple, ne? *smile*
And that was pretty much all we got to do today!
Oh, and now it's "shameless self-promotion time"!
I wrote a poem!
It's up on my Fanfiction account because it can be linked to Snow White and the Seven Dwarfs. (Actually, it is based on Snow White and the Seven Dwarfs.)
And while you're there, please check out my other stuff, too~! (I got flamed twice in two weeks, so I've been feeling pretty down. Now, if those people had told me what I could improve on, it might not have hit me so hard. See, I'm very serious when it comes to my writing: I want to become an author when I grow up. So if there's anything you guys see that I could improve on...please tell me!)
Arigatou gozaimasu, minna-san~
Mata ashita!
---
Translation:
Thank you very much, everyone~
See you tomorrow!
No comments:
Post a Comment