Write an algorithm and also draw the flowchart-
1) to add two distances
2) to find difference between two distances
3) to find the difference between heights of two students
Answers
Answer:
SORRRRRRRRRRRRRRRRRRRRRRYYYYYYYYYYYY
Answer:
In order to perform the above mentioned three functions, the following algorithm of program is needed to be followed:-
1) To add two distances
Step 1: Take two distances inputs from user.
Step 2: Make a third variable named as "Result".
Step 3: Sum up the two numbers and store in the third variable.
Step 4: Print the third variable.
2) To find difference between two distances
Step 1: Step 1: Take two distances inputs from user.
Step 2: Make a third variable named as "Result".
Step 3: Find the two numbers difference and store in the third variable.
Step 4: Print the third variable.
3) To find the difference between heights of two students
Step 1: Take two heights inputs from user.
Step 2: Make a third variable named as "Result".
Step 3: Find the two numbers difference and store in the third variable.
Step 4: Print the third variable.