Lesson 2 - Algorithm and Flowcharting.pdf

ssuser609e37 1,436 views 29 slides Sep 24, 2024
Slide 1
Slide 1 of 29
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29

About This Presentation

In the realm of computer science, algorithms and flowcharts serve as the foundational tools for problem-solving and program development. An algorithm is a step-by-step procedure for accomplishing a specific task, while a flowchart is a visual representation of an algorithm using various shapes to sy...


Slide Content










START
birthyear, age
display
“Enter Year of Birth:”
input
birthyear
age = 2023 - birthyear
display
age
END

START
kilo, pound
display
“Enter Weight in
Kilogram:”
input
kilo
pound = kilo * 2.2
display
pound
END

START
length, width, area
display
“Enter Length:”
input
length
display
“Enter Width:”
input
width
A

area = length * width
display
area
A
END



START
num1, num2, num3, num4,
sum, product, square
display
“Enter the First
Number: ”
input
num1
display
“Enter the Second
Number: ”
input
num2
A

display
“Enter the Third
Number: ”
input
num3
display
“Enter the Fourth
Number: ”
input
num4
B
A
sum = num1 + num2

display
sum
display
square
B
product = num3 * num4
square = num2 * num2
display
product
END




START
num1, num2, num3, num4,
cube, half, twentyp, times100
display
“Enter the First
Number: ”
input
num1
display
“Enter the Second
Number: ”
input
num2
A

display
“Enter the Third
Number: ”
input
num3
display
“Enter the Fourth
Number: ”
input
num4
B
A
cube = num1 * num1 * num1

B
half = num2 / 2
twentyp = num3 * 0.20
END
times100 = num4 * 100
display
cube
display
half
display
twentyp
display
times100