Chapter 1 PIC SSM
Chapter 1 PIC SSM
2) : Decision Making
3) :Input/Output statements
4) : Start/Stop
Answer:
Q5.Draw and label symbols used in flow chart.(W18,2Marks)
Importance of flowchart:
Sometimes it's more effective to visualize something graphically that it is to describe it with
words.
Flowchart is the tool which helps to represent logic of the program pictorially.
Flowcharts explain a process clearly through symbols and text.
Q6. Write an algorithm to determine whether a given number is
Divisible by 5 or not (W18, 4Marks)
Step 1- Start
Step 2- Read / input the number.
Step 3- if n%5==0 then goto step 5.
Step 4- else number is not divisible by 5 goto step 6.
Step 5- display the output number is divisible by 5.
Step 6- Stop
Algorithm
1. Start
2. Initialize the variable i to 1.
3. while i<=100
4. if i%2==0
5. print the number
6. increment value of i
7. stop