Professional Documents
Culture Documents
(2021 01 21) (AiSD Exam)
(2021 01 21) (AiSD Exam)
21.01.2021r
Name ……………………………
Ex.1. Implement the algorithm presented in the flowchart. Register variable values at
individual stages of the algorithm implementation.
t[5,9,4,2,6]
n=5
t n i j tmp
1
2
3
4
5
6
7
8
9
10
11
EXAM– Algorithms and Data Structures
mgr inż. Cezary Graul
Ex.2. Draw a flowchart of the algorithm that will acquire a numeric value from the user (verify
that the entered value is a number), and then verify that the entered value is an integer. If so,
check and display how many digits the number has. If not, complete the algorithm execution.