Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
02
PART A
Task 2: The following incomplete flowchart add all even numbers between 1 to 50.
(Students must submit the soft copy as per following segments within two hours of
the practical. The soft copy must be uploaded on the Blackboard or emailed to the
concerned lab in charge faculties at the end of the practical in case the there is no
Black board access available)
Semester: 2 Batch : F3
Grade :
1) Algorithm
1. Start
2. Input number N
3. count = 1, sum = 0
4. while (count<=N)
5. Print sum
6. Stop
Flow Chart
2) Algorithm
1. Start
3. Print
1. Addition
2. Multiplication
3. Division
4. Subtraction
4. Input choice
5. if choice = 1
6. else if choice = 2
7. else if choice = 3
8. else if choice = 4
8a. answer = X – Y
9. else
9a. Print invalid choice
10. Stop
Flow Chart
3) Algorithm
1. Start
2. N = 10
3. count = 1
4a. Print N
4b. N = N – 1
5. count = count + 1
6. Stop
Flow Chart
4) Algorithm
1. Start
2. Input N
3. count = 1, sum =0
5. average = sum/N
6. Print average
7. Stop
Flow Chart
5) Algorithm
1. Start
2. Input number X
3. C=2
4. P = X%C
5. If P =0
6. Else
7. Stop
Flowchart:-
Task 2
Answer : B
B.3 Conclusion:
(Students must write the conclusion as per the attainment of individual outcome listed above and
learning/observation)