Flow Charts & Pseudo Codes
Information& Communication Technology
- What is an algorithms?
An algorithm is a complete step-by-step procedure for solving a problem or accomplishing a task.
- An algorithm must be
- Be Precise
- Be Logical
- Be Effective
- Terminate Eventually
- how to represent an algorithms?
- Pseudo Code
- Structure Charts
- What is a flow chart?
It is a step by step Diagrammatic representation of the program Each type of task is represented by a symbol
- What are the Advantages of using flow chart ?
- Communication: Flowcharts are better way of communicating the logic of a system to all concerned.
- Effective analysis: With the help of flowchart, problem can be analysed in more effective way.
- Proper documentation: Program flowcharts serve as a good program documentation, which is needed for various purposes.
- Efficient Coding: The flowcharts act as a guide or blueprint during the systems analysis and program development phase.
- Proper Debugging: The flowchart helps in debugging process.
- Efficient Program Maintenance: The maintenance of operating program becomes easy with the help of flowchart. It helps the programmer to put efforts more efficiently on that part
- What are the Limitation of using flow chart ?
- Complex logic: Sometimes, the program logic is quite complicated. In that case, flowchart becomes complex and clumsy.
- Alterations and Modifications: If alterations are required the flowchart may require re-drawing completely.
- Reproduction: As the flowchart symbols cannot be typed, reproduction of flowchart becomes a problem.
- The essentials of what is done can easily be lost in the technical details of how it is done.
- What is a Typical Algorithms?
Most simple algorithms that you will develop will involve inputting some data, performing some calculation and finally displaying the output.
- Write down the process of getting up in the morning & going to school?
- Wake Up
- Get Out of Bed
- Have A Shower
- Dry Your self
- Get Dressed
- Have Breakfast
- Pack Bag/Lunch
- What are the logic constructs?
It has been proven that three basic constructs for flow of control are sufficient to implement any "proper" algorithm.
• Iteration / Loop
10. What is the SEQUENCE?
SEQUENCE is a linear progression where one task is performed sequentially after another…
solution steps must follow each other in a logical sequence
Statements are executed in the same order as they are written.
11. What is the SELECTION?
- that even though selection is a separate construct to sequence, the two are combined in the overall solution, and remember that one doesn’t replace the other.
- There may be alternative steps that could be taken subject to a particular condition
- IF-THEN-ELSE is a decision (selection) in which a choice is made between two alternative courses of action. 12.What are the basic loops?
Kuliyapitiya National School