0% found this document useful (0 votes)
1 views24 pages

Algorithms and Flow Charts Jan 1st Week

[1] The flowchart starts with inputting the numbers 37 and 64 [2] It then has a process symbol for adding the ones columns of 7 and 4 to get 11 [3] It carries 1 to the tens column [4] Another process symbol adds the tens columns of 30 and 60 along with the carried 1 to get 101 [5] The flowchart ends by outputting the total of 37 + 64 which is 101

Uploaded by

Alifiya D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views24 pages

Algorithms and Flow Charts Jan 1st Week

[1] The flowchart starts with inputting the numbers 37 and 64 [2] It then has a process symbol for adding the ones columns of 7 and 4 to get 11 [3] It carries 1 to the tens column [4] Another process symbol adds the tens columns of 30 and 60 along with the carried 1 to get 101 [5] The flowchart ends by outputting the total of 37 + 64 which is 101

Uploaded by

Alifiya D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24

Computational thinking

Topic
Computational thinking
Objective:
•To learn about the importance of
programming.
•The advantage of creating step-by-step
instructions in the form of an algorithm.
Activity
List the activities you did today
since you have entered the
school till this lesson.
Program
It is a set of instructions that tells a
computer how to perform a task.
Programs are written by people called
programmers.
1.Binary language.
2.User friendly languages
Computational thinking
It is a process to solve problems.
Tools to solve a problem
1.Decomposition.
2.Algorithm.
Decomposition
It is to break a problem into smaller parts.
Algorithm

Algorithm is a sequence of instructions


that can be followed easily.
Note: Step by step instructions are easy to
understand.
How to create an algorithm
1.To break down each
activity into simple steps.
2.Write a clear instruction
for each step.
Adding the numbers 13 and 7
1. On a piece of paper, write down 13.
2. Write 7 under 3 in the ones column.
3. Add 3 and 7.
4. Carry 1 to the tens column.
5. Write 0 in the ones column in the answer row.
6. Add 1 and 1.
7. Write 2 in the tens column in the answer row.
Task
Write an algorithm to subtract
two numbers that is 13 from
22.
1. On a piece of paper, write down 22.
2. Write 13 below 22.
3. 2 is less than 3.
4. Borrow 1 from 2 in the tens column.
5. Subtract 3 from 12.
6. Write 9 in the ones column in the answer row.
7. Subtract 1 from 1.
8. Write 0 in the tens column in the answer row.
Think …Pair and Share
Think for a 1 minute and answer
the following question:
Describe about any 3 situations
where you might need someone to
give you step-by-step instructions.
Topic - Flowcharts
Objective:

To learn about flowcharts.


FLOW CHART
• It is the pictorial representation of an algorithm.
• It helps programmers to plan and write the
program.
SYMBOLS NAME FUNCTIONS
It represents the starting point
START/END SYMBOL and end point of a flow chart.

It is used to connect other


ARROWS symbols to form a sequence in a
flow chart.
It represents the processing taking
PROCESS SYMBOL place inside the computer.

It represents the stage where data


INPUT/OUTPUT and processing instructions are
SYMBOL fed into the computer.
It represents the stage where a
DECISION SYMBOL computer has to make a decision.
Flowchart for
addition of two
numbers 13 and 7.
START

INPUT 13

INPUT 7

ADD ONES
COLUMN

CARRY DIGIT TO TENS YES IS


COLUMN ANSWER
>9?
NO
ADD TENS
COLUMN

OUTPUT 13 + 7

END
Flowchart for
subtraction of 13
from 22.
START

INPUT 22

INPUT 13

BORROW 1 FROM TENS


IF 2 < 3?
COLUMN YES
NO
Subtract ones
column

Subtract tens
column

OUTPUT 22-13

END
Task
Create a flow chart for
adding 37 and 64.

You might also like