Sunday, 21 October 2018

LAB 4

Hello everyone!
Today is the lab 4 class. For today, we learn about Multiway and nested selections. The purpose of this topic is to help student understand how to use multi-way and nested selection statement to specify alternative path of program's execution.

Let's see what is our activity now!

This is quite challenging part for me. We are given task to write our own text adventure game. I need to think about the story and I need to make a program. When I'm trying again and again, actually I found the answer. For this lab, I can see that it helps me to use my own creativity and my struggle to find the solution. Here I attach the question and my game. Let's look together!

Question


Answer :





Question 2


Answer :





Here is my game. Hope you enjoyed it! Thank you for reading my blog. 



Lab 5 : Switch statement, Logical Operator and Conditional Operator

Hi everyone! Today is my Lab 5 work. Let's see what I do in this class.
For this topic, we learn how to use switch statement to specify alternative paths of program's execution. Besides, we learn how to use logical operators to combine Boolean expressions and lastly we learn to use conditional operators for concise and elegant code for decision making.

For me, this chapter is quite confusing because it has many statement that we need to executed. But when I do the exercise, I can understand how the process going on. Here is our exercise for Lab 5 today.

Question 1


Answer :


Question 2



Answer :


Flowchart :


Question 3


Answer :


Question 4


Answer : 


Question 5 



Answer :



Question 6 :


Answer :



Question 7


Answer :






Question 8



Answer :





Question 9


Answer :




That's all from me. Thank you for reading my blog. Till we meet again !

Next blog : saiful21ikhwan.blogspot.com

Friday, 12 October 2018

LAB 3

Hello everyone! Now is the third lab session which is Lab 3. Stay tuned!

For this lab session, i learn about problem solving, data types and selection. Actually for this time, i see that when i do the flowchart, i can see the way to solve the question.

In Lab 3, we are given 8 question which are :

Question 1


Answer :


Question 2 :




Answer :


Question 3 :



Answer :


Question 4 :


Answer :



Question 5 :


Answer :



Question 6 :


Answer :



Question 7 :



Answer :



Question 8 :


Answer :


That's all for today. Thank you for reading my stories.

Next blog : saiful21ikhwan.blogspot.com

Lab 10

Hello everyone! Now is our Lab 10 exercise. For this topic, we learn  Multi-Dimensional Array and having lab for this sub-topic. We learn ho...