Escolar Documentos
Profissional Documentos
Cultura Documentos
CM304.28 2
Recap
CM304.28 3
Algorithm & flowchart
CM304.28 4
Algorithm Flowchart
CM304.28 5
Algorithm Flowchart
CM304.28 6
Algorithm Flowchart
CM304.28 7
Algorithm Flowchart
CM304.28 8
Algorithm Flowchart
CM304.28 9
Algorithm Flowchart
is easy. reproduction is a
problem.
CM304.28 10
Algorithm Flowchart
CM304.28 11
Algorithm To Find Sum of Three Numbers
Step 1:
Read the three numbers x, y, z.
Step 2:
Sum x+ y+ z
Step 3:
Print Sum
Step 4:
Stop
CM304.28 12
Algorithm to find whether a given number is
positive or negative
Step 1:
Read the number x
Step 2:
if (number>0)
Go to step 3
else
Go to step 4
Step 3:
print the number is positive. Stop.
Step 4:
print the number is negative. Stop.
CM304.28 13
Algorithm to find adding first 100 natural
numbers
Step 1:
Input last natural number
Step 2:
X (n*(n+1))/2
Step 3:
Print the value of X
Step 4:
Stop.
CM304.28 14
Algorithm to find Fahrenheit temperature
Step 1:
Read centigrade reading
Step 2:
F 9/5*c+32
Step 3:
Output the Fahrenheit temperature.
Step 4
Stop
CM304.28 15
Algorithm to find largest of three numbers
Step 1: Read three numbers A,B,C
Step 2:If A>B then go to step 5
else go to step 3.
Step 3:If B>C then print B is greatest and
go to step 7.
Step 4: Print C is greatest and go to step7
Step 5:If A>C then print A is greatest and
go to step7
Else go to step 6
Step 6:Print C is greatest
Step 7:Stop.
CM304.28 16
Algorithm to find factorial N
Step1: Start
Step2: Read year
Step3: Computer year
If year mod 4 is zero
result = “leap year”
Step4: Print result
Step5: Stop
CM304.28 18
Summary
Simple algorithms.
CM304.28 19
Quiz
(a) Algorithm
(b) Program
(c) Flowchart
(d) None
CM304.28 20
Quiz
(a) Algorithm
(b) Program
(c) Flowchart
(d) None
CM304.28 21
Quiz
(a) Algorithm
(b) Flowchart
(c) Program
(d) None
CM304.28 22
Quiz
(a) Algorithm
(b) Flowchart
(c) Program
(d) None
CM304.28 23
Quiz
(a) Program
(b) Flowchart
(c) Algorithm
(d) None
CM304.28 24
Quiz
(a) Program
(b) Flowchart
(c) Algorithm
(d) None
CM304.28 25
Assignment
numbers.
CM304.28 26
Frequently Asked Questions
CM304.28 27