Computational Thinking Year 7
Computational Thinking Year 7
THINKING
What is computational thinking?
• Algorithm
• Decomposition
• Pattern recognition
• Abstraction
ALGORITHM
• Algorithm is a set of instructions that can be followed to solve a
problem.
• Here is an example of an algorithm for making a cup of tea:
Activity
• Write an Algorithm for the Robot to pick up the Beacon to its lower right in your
google slide
Flow chart
• A flowchart is a graphical representation of a process or algorithm that
uses various shapes and symbols to depict different steps and decision
points. It is a visual tool that helps in understanding and communicating
the flow of a process or program.
EXAMPLE OF FLOW CHART
ACTIVITY
output
output
ACTIVITY
• Write a program that checks the age of a person. If the age is greater than
or equal to 18, the program should display the message "You can drive."
Otherwise, it should display the message "You cannot drive.“
• Could you please provide a flowchart for this program using Draw.io or
any other preferred flowchart tool?
ACTIVITY
• Write a program To find average of 3 numbers and draw the flowchart of
same using any of the drawing tool.
ACTIVITY
• Draw a flowchart of program in Python that checks whether a year is a
leap year or not:
ACTIVITY
• Draw a flowchart for a program in Python that determines whether a given
number is positive, negative, or zero: