Cambridge Section
Name: -------------------------- Class: Foundation
Subject: Computer Science Date: ---------------------
Topic: Algorithmic Thinking
1. What is an Algorithm?
A step-by-step process to solve a problem is called an algorithm.
2. What is a Computer Problem?
A computer problem is a task or challenge that needs to be solved using a
computer. For example, sorting a list of names, finding the shortest route on a
map, or creating a game.
3. What is computational thinking?
Computational thinking is a way of solving problems like a computer scientist. It
means breaking a problem into smaller parts, looking for patterns, removing
unnecessary details, and designing step-by-step solutions.
Algorithm writing (Using Conditional Statement)
Algorithm 1: Find the Largest Number
Start
Take three numbers as input
Compare the first number with the second
IF the first number is greater THEN compare it with the third
Else compare the second number with the third
Display the largest number
End
Cambridge Section
Algorithm 2: Check if a Number is Even or Odd
Start
Take a number as input
Divide the number by 2
IF the remainder is 0 THEN display "Even"
Else display "Odd"
End
Algorithm 3: Calculate the Average of 3 Numbers
Start
Take three numbers as input
Add the three numbers
Divide the sum by 3
Display the result as the average
End