4th Week (15th March 2013)
Week four into the course and I promise this will be the shortest entry yet! It’s not because I haven’t learnt anything new in this past week, it’s just that most of the lessons consisted of revisions and practical work. And we also learnt a lot of tips on how to answer correctly and precisely on the written examinations. However, that portion of the lesson will be just a tiny smidge here in this week’s entry. Thus, the guideline for this week’s reflection is as follows; revisions, practical works and lastly the get-it-into-your-small-head-IPO-paradigm.
Just as it says on the tin, we had revisions and practical work. I’m not complaining about it, nope, no siree, since it’s good for a novice like me to practise as much as possible. But I do get tired of repeating the same thing over and over in these reflections entries. So I won’t. Instead, I’ll just state how we get to practise using conditional statements as well as other various connecting operators such as ‘>’, ‘<’, ‘>=’, ‘<=’,’==’ and ‘!=’. No, I did not use those as an excuse to insert smiley emoticons here. Basically, we’ve experimented the use of conditional statements which consists of keywords ‘if’ and ‘else’. In class, we’ve used ‘salaries’ as an example. For instance;
if ‘sal < 800’
cout << “ You can’t buy lots of food, poor you.”;
else cout << “ Congrats! You can buy happiness in terms of food!”;
Ok, that was not the exact example of what we actually did in class. But it uses the same concept. The meaning of that code is that if the user had inputted his/her salary that is less than 800 (RM,$, Euro), then the words, “ You can’t buy lots of food, poor you.” will be displayed. If it is more than 800, then the magical words of “Congrats! You can buy happiness in terms of food!” will greet you cheerfully. And it will supposedly make you happy and feel good about your life, even if it is just for a moment. I have a feeling that we’ll be dealing with more of these conditional statements in the upcoming week and they will be more complex and sophisticated. (For a novice like me.)
Last but not least is the paradigm IPO, which I will attempt to remember until the day I die. ‘Input’, ‘Process’ and ‘Output’. Easy to remember but what if you suddenly forgot all about it when you’re about to take the final exam? That would be impossible (unless you got hit in the head by a random ball/pot/shoe/cat/KFC and lose your memories by amnesia) because we have the paradigm beaten into our brains at every class. That’s a good thing, mind you. It is the most important tip for us to take full advantage of and abuse mercilessly whether it is for the written final exams or even for when you’re creating a program. The IPO paradigm is like air for life on Earth. Without the IPO paradigm, we’d surely die in the course of computer programming.