Algorithm
Algorithm is a set of instruction which will produce a solution to a given problem is executed in a specified sequence. An algorithm tells a person what to do next. Thus, an algorithm is a roadmap for solving a problem. The word 'algorithm' is named after a famous ninth century Arabic auther and mathematician Abu Jafar Mohammed Ibn Musa Al Khowarizmi.
Advantages of Algorithm
- It is a step wise representation of a solution to a given problem, which makes it easy to understand.
- An algorithm uses a definite procedure.
- It is not dependent on any programming language, so it is easy to understand for anyone even without programming knowledge.
- Every step in an algorithm has its own logical sequences so it is easy to debug.
Flowchart
A flowchart is a graphical/ diagrammatic/ pictorial representation of series of instructions to be executed to perform a given task. It is a diagram or chart that shows the connections between different stags of process.
Advantages of Flowchart
- Flowchart is an excellent way to communicating the logic of program.
- During program development cycle, the flowchart plays the role of a blueprint, which makes program development process easier.
- After successful development of program, it needs continuous timely maintenance during the course of its operation. The flowchart makes program or system maintenance easier.
- It is easy to convert the flowchart into any programming language code.
Important Question of Algorithm and Flowchart
1) Write an algorithm and draw a flowchart to add two number.
2) Write an algorithm and draw flowchart to convert temperature from celsius to fahrenheit.
3) Write an algorithm and draw flowchart to convert temperature in fahrenheit to Celsius.
2) Write an algorithm and draw flowchart to convert temperature from celsius to fahrenheit.
3) Write an algorithm and draw flowchart to convert temperature in fahrenheit to Celsius.
Comments
Post a Comment