Monday, August 17, 2009

Tao gathering 15/8/09

One of our semester's tradition is to have a good meal before saying goodbye for the holidays, the last time we went for BBQ Steamboat Buffet at Tanjung Bungah, this time is TAO Autocity.


Chit chatting and eating


Yummy lamb shoulders.....


Sweet and Sour chicken...


The Heineken gang.


Peoples of the republic of oOo


Fatty Murthy getting a rest after eating so much.


Enjoying my scallop.


Raja Uda big boss (The middle guy)


Me and Simon


Hacker Hng enjoying his Heineken

All most the whole class went for this event except for our Legend and few others as it is flu season as well. Well, here comes 2 weeks of holiday and time to start my research



Happy Holidays.

Wednesday, August 12, 2009

Do While (Repetition Structure) looping

When it comes to looping, it is all about doing the same process over and over again. To do that, we must have something to initiate the loop and something to stop the loop (condition).

Let's start with the While/Do-While loop. A Do While loop is a precondition loop which means before the looping process starts, there is a stated condition whether it should start the looping process or skip it. Similar to the IF/THEN/ELSE they use the decision making system. So if the condition is fulfilled (TRUE), it will start the loop. Else(FALSE) it will skip the loop.

Here is an example of Do While Loop

x=8
WHILE (x>5)
{ statement
statement
statement
x=x-1 (This is to decrease X every loop so that it can stop the loop)
}

When we initialized the loop, you have to do something to stop the loop or else you'll be experiencing and unlimited loop. Notice the x=x-1 in the algorithm? That is to stop the looping process. Before the looping, x has the value 8. It will start the loop as x is bigger than 5. So within the looping process, you need to have something to decrease the value of x until x is smaller than 5 to stop the loop.


After executing the statements fulfilling the condition, the looping process takes it back to the starting point where it checks the condition deciding whether should it continue the loop process or not (Remember to write an instruction to decrease/increase the variable value of the condition to stop the looping process or else you will be getting an unlimited loop).

Decision Logic

When it comes to Decision Logic, all you have to do is to think of these 3 words IF/THEN/ELSE. Why we need to use Decision Logic? We need to use decision logic because it is the only way computer can choose between one or more set of action. Computer can only choose either one because computer is running on Binaries, so it is either 0 or 1.

Before you start to think of how it works, relax you mind first don't think of complicated stuff first. Computers are not complicated as a human being, computer is just yes and no while a human can answer yes,no and maybe.

How the IF/THEN/ELSE structure function is simple. The computer will either execute Instructions for the True statement or the False statement.

Take the Algorithm below as an example.

IF (x=5) THEN
{ DISPLAY "The value of X is now 5"}
ELSE
{DISPLAY "The value of X is not 5"}
END IF

From the example above, if it fulfills the condition when x=5 then computer will execute the instruction for the true statement. If it does not fulfills it, it will skip through the instruction and proceed to the else part (FALSE part).


Monday, August 3, 2009

Kulim.

Well, it's something special on a Monday, Lab class are over so I don't have to go to school but have to do some chores. Have to wake up in the morning and fetch my aunt to Kulim for some religious business which I am not interested, so I decided to bring Han Phin along with me as I need some company.

After my aunt settled her prayers, we went to my third aunt's house in Kulim to take something there and the best of all plug rambutans to fill my stomach.... hehehe.........




Me washing ants off rambutan and collecting my harvest, hehe..

What is in my blog.....

So, what do I write in my blog? Basically my life experiences. Sometimes I may write something about my experience in blog and it may relate to some entities which I knew or never knew. So whatever that is, I'm just sharing my life experiences to my readers and not to insult or hurt anyone. If anyone find it very offending to him/her, you can email me personally at Garylim-03120@hotmail.com to me to remove the post and I will be very happy to do so as I don't want to make harm on others' feelings.



PS: I am not responsible for any emotional breakdown for anybody. As what I have said it is just sharing of experience.