Monday, December 1, 2025

Algorithm and Flowchart

 Other Exercises


Q1. Describe the following steps of problem solving process
  1. Define the problem
  2. Analyze the problem
  3. Planning the solution of the problem
  4. Find candid solutions of the problem
  5. Select the best solution 

Q2. Define an algorithm

Q3. Describe the following four essential parts of an algorithm:

a. inputs
b. processing
c. decision
d. output

Q4. Write down the algorithms of the following problems

1. To find the sum of two numbers
2. Finding area of rectangle (Area = A*B)
3. Calculating average of three numbers.
4. Greatest of two numbers
5. Find the area and perimeter of square. (Area=L*L) (P=4*L)

_______________________________________________________

 Advantages of flowchart

1.       Easy to understand the logic

2.       Easy to maintain

3.       Help in detecting errors

4.       It helps to converting an algorithm into computer program


Q4. Describe the importance of program flowchart for solving a problem.

Ans. Flowchart is a graphical representation of an algorithm. It is a way of visually presenting the flow of data the operations performed on data and the sequence of these operations. Flowchart is similar to the layout plan of a building. A designer draws the layout plan of the building before constructing it. Similarly, a programmer prefers to design the flowchart before writing the computer program

Write down algorithm of the following and also make flow chart

         1.       Find the sum, product and average of five given numbers.

        2.        Find acceleration of a moving object with given mass and the force applied.

        3.        Find the volume of a cube, cylinder or sphere.

        4.        Find the area of a triangle, parallelogram, rhombus or trapezium.

        5.        Convert Celsius to Fahrenheit temperature and vice versa.

        6.        Display the larger one out of the three given unequal numbers.

         14. A flowerpot falls off a second-story windowsill. The flowerpot starts from rest and hits the                            sidewalk 1.5 s later with a velocity of 14.7 m/s. find the average of the flowerpot.

           A = final velocity-initial velocity/time – vf-vi/t

 









No comments:

Post a Comment