For this week classes we just having classes on Wednesday only this is because of the Deepavali celebration by our India friend. Since last week was mid-semester break so i was taking an opportunity to continue my break 🤣. On Wednesday we just having one hour class on 1 o'clock and during the lecture Dr Erzam was teaching us about type of loop in the programming. Before starting the lecture Dr Erzam was giving an interesting real life example by play a simple game where he ask us to guest the number that he thinking off. There were a few rule in this where the range of the number was between 0 until 10 and everytime we was a wrong number he will tell us either the number was to large from what his number was. After a few guest we manage to figure out the number and the number was 3. For the conclusion of the game Dr Erzam was telling us that this game will still continue for a few round if we guessing the wrong number and this was actually call a loop where it will keep repeating the game.
Next, he continue his lecturer by tell us the first type of loop was call while loop and according to the Dr Erzam this loop was repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body. In the simple way the computer will print the output if the input was true and it will stop until the false input was being put. To get us to understand the loop Dr Erzam was drawing the flow chart and the flow chart really useful since from the flow chart we can differentiate the while loop and the other one. From the flow chart Dr Erzam was writing the java program. From this we can understand better on how to write the java program for the loop.
Normal Loop Flow Chart |
Since it just one hour lecture that it for this week lecture class and before ending the lecture Dr Erzam was giving us like an exercises for us to figure out by our self at the home and he also giving a good for me where he said for this week there are no lab exercise for this week but we still need to come to the lab to finish our previous lab session that no finish yet. Supposedly, this week we will have a lab test but since Dr Erzam forget to inform us earlier before the mid-semester break so the lab test was postpone to the next week and next week gonna be a tough week for me since i will having 3 test on another subject too so WISH ME A LUCK for the test 😁
Please check it out my other friend blog spot for her interesting story about her programming classes. Please click the link below : http://pritah05.blogspot.com/
SAIFUL IKHWAN BIN AZIZ
183802
No comments:
Post a Comment