Professional Documents
Culture Documents
A.1 Aim:To Study Algorithm and Flow Charts
A.1 Aim:To Study Algorithm and Flow Charts
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)
B.1 Algorithm
1. Step 1: Start.
Step 2: Input n.
Step 3: a: count=1
b: sum=0
b: sum=(count*count) + sum.
c: count=count+1.
Step 6: Stop.
2. ADDITION.
Step 1: Start.
Step 5: Stop.
SUBTRACTION.
Step 1: Start.
Step 4: Display z.
Step 5: Stop.
MULTIPLICATION.
Step 1: Start.
Step 4: Display z.
Step 5: Stop.
DIVISION.
Step 1: Start.
Step 5: Stop.
3.
Step 1: Start.
Step 2: count=10
b: while (count>=1)
c: count=count-1.
Step 5: Stop.
4.
Step 1: Start.
Step 2: Input n.
Step 3: a: count=1
b: sum=0
b: Input num.
c: sum=sum+num
d: count=count+1
Step 5: Average=sum/n
Step 6: Print average.
Step 7: Stop.
1.
2. Start
ADDITION
Input x and y
x+y=z
Display z
Stop
Start
SUBTRACTION
Input x and y
y-x=z
Start
Display z
MULTIPLICATION
Input x and y
Stop
x*y=z
Input x and y
Stop
DIVISION
Start
Input x and y
y/x=z
Input x and y
3. Stop
4.
B.3 Conclusion:
(Students must write the conclusion as per the attainment of individual outcome listed above and
learning/observation)