Page 92 - Code & Click - 5
P. 92
DECISION MAKING
Consider the procedure for making a telephone call to talk to your friend.
Step 1 Step 2 Step 3
Pick up the mobile phone. Open the dialler app. Dial the phone number.
Step 4 Step 5
Talk when someone answers. End the call.
Algorithm Flowchart
Step 1: Pick up the mobile phone. Start
Step 2: Open the dialler app. Pick up the mobile phone
Open the dialler app
Step 3: Dial the phone number.
Dial the phone number
Step 4: Talk when someone answers.
Talk when someone answers
Step 5: End the call. End the call
Stop
What if the phone of your friend is busy? In this case, you need to put down the
receiver and try to call your friend later. It involves checking a condition and taking an
appropriate action.
In a flowchart, a decision box is used to test a logical condition. A logical condition
always results in two answers – Yes or No. The flowchart flows in a different direction
based on the answer.
90