Beruflich Dokumente
Kultur Dokumente
Objectives
In this session, you will learn to:
Identify repetitive processes
Work with arrays
Manipulate arrays using loops
Ver. 1.0
Slide 1 of 17
Repeat Until
Ver. 1.0
Slide 2 of 17
Average Score
Flowchart
Ver. 1.0
Slide 3 of 17
Ver. 1.0
Slide 4 of 17
Ver. 1.0
Slide 5 of 17
arr[0]
Ver. 1.0
arr[1]
arr[2]
arr[3]
arr[4]
Slide 6 of 17
Ver. 1.0
During Declaration
After Declaration
begin
numeric arr[5] = {14, 15,
17, 45, 81}
.....
.....
End
begin
numeric arr[5]
display Enter the values for an
array
accept arr[0]
accept arr[1]
accept arr[2]
accept arr[3]
accept arr[4]
end
Slide 7 of 17
Ver. 1.0
Slide 8 of 17
Ver. 1.0
Slide 9 of 17
for
switchcase
repeatuntil
if
Solution:
repeatuntil
Ver. 1.0
Slide 10 of 17
display
begin
end
accept
Solution:
accept
Ver. 1.0
Slide 11 of 17
Solution:
subscript
Ver. 1.0
Slide 12 of 17
Ver. 1.0
Slide 13 of 17
Ver. 1.0
Slide 14 of 17
Ver. 1.0
Slide 15 of 17
Ver. 1.0
Slide 16 of 17
Ver. 1.0
Slide 17 of 17