1673862750795.std 5 Algorithm & Flow Chart Assignment
1673862750795.std 5 Algorithm & Flow Chart Assignment
2022-23
Std: V ASSIGNMENT Topic: Algorithm and Flowchart
Q 1 Answer the following questions:
1. List any two important things that we need to do while drawing a flowchart?
Ans: The flowchart should be clear, neat and easy to follow
The usual direction of the flow of a procedure or system (arrow) is from
left to right or top to bottom.
2. How many flow lines should enter into a decision symbol while drawing a flowchart?
Ans. Only one
3. Which flowchart symbol is used to make decisions/conditions?
Ans. Decision/Diamond Box
4. What do you mean by looping?
5. Ans. Repetition of a sequence of steps until a specific condition is fulfilled is
called a loop.
6. Draw a flowchart symbol which is used to indicate the direction of flow.
Ans. Flow lines
7. List uses of a flowchart.
1. Draw the flowchart symbol which is used to represent a single step such as Sum
= A+ B
Ans. Process Box
2. Draw the flowchart symbol which is used for decision making.
Ans:
3. Draw a flowchart to compute the breadth of a rectangle of a given area and length...
(Breadth = Area/Length)
a. In the flowchart above, what will be the first action you take?
Ans. Take one step forward
b. What will be the final result of your actions if you follow the flowchart above from
start to finish?
Q VI: what will be the output of the following flowchart? Describe it:
Ans: At first sum and count variables are assigned with value ‘0’. A value from
the user is taken and stored in variable n. Next the number stored in n is added
with the value stored in sum, and the result is stored in sum. i.e., sum = sum +
n. Then the count is incremented by 1 and check if count is less than 5. If this
condition is TRUE then another number will be taken from user. If the
condition is FALSE then it will print the value stored in variable sum. For eg: If
n = 1, 2, 3, 4, 5 then the result will be sum = 15.
Q VII: Write an algorithm to convert a temperature from Fahrenheit (F) to Celsius (C). The
formula to do this is C = 5/9*(F-32). Draw a flowchart by using the algorithm.
Ans: Algorithm:
Step 1: Start
Step 2: Get temperature in Fahrenheit ‘F’.
Step 3: Calculate temperature with formula C=5/9*(F-32)
Step 4: Print C
Step 5: Stop
Flowchart:
Ans: a. It represents the inputs required for the process or outputs of the process.
b. It is used to check conditions and compare and take decisions based on the
outcome. The next step will be based on this outcome that can be either ‘yes’ or ‘no’.
c. It represents the actual processing part of a flowchart, such as a calculation.
Q X. Draw the symbols you will use in a flowchart for the statements:
b. End a process