Page 105 - C_GPT _V4 _class_6
P. 105
Step 5: Ask for your favourite pen.
Step 6: If the pen is available, then go to step 7 otherwise go to step 10.
Step 7: Give money to the shopkeeper.
Step 8: Keep the purchased pen safe.
Step 9: Go back home and go to Step 12.
Step 10: Ask for any other brand of pen.
Step 11: Go to step 6.
Step 12: End.
Example 2: Complete the algorithm to find sum and product of three numbers.
Step 1: Start.
Step 2: Read (Input) the three number as "a","b","c" from the user.
Step 3: Find sum = a + b + c.
Just as a peacock’s call can
Step 4: Find product = a × b × c. signal upcoming rain, computer
Step 5: Print sum and product. algorithms can predict future
events based on data patterns.
Step 6: End.
Factbot
When we search anything on Google, it gives us result based on an algorithm written for it.
Experiential Learning Lab Activity
Complete the algorithm to search on Google for a question “who developed first code?”
Step 1: Start
Step 2: Start your computer
Step 3: Open a
Step 4: In the address bar, type .com
Step 5: Type as your query
Step 6: Press
Step 7: End
FLOWCHARTS
A flowchart is a type of graphical diagram that represents an algorithm. Flowcharts are used in
analysing, designing, documenting, or managing a process or program in various fields.
Algorithmic Intelligence 103

