Back to: DATA PROCESSING SS 2
Welcome to class!
In today’s class, we will be talking about algorithms and flow chart. Enjoy the class!
Algorithms and Flow Chart
Algorithm
An algorithm is a step by step procedure of solving a particular problem. It is simply a sequence of clear and precise instructions for solving a particular problem. Algorithms are usually written in English and some few mathematical notations (signs, symbols)
Characteristics of algorithms
- They are written in sequence.
- They are written in English like statements.
- Finite, it must have a beginning and an end.
- Should be effective
- Should not be ambiguous. Should be consistent.
Example
An algorithm to calculate the average of three numbers:
Step1: Enter the first number N1
Step2: Enter the second number N2
Step3: Enter the third number N3
Step4: Calculate the total (N1+N2+N3)
Step5: Calculate the average (N1+N2+N3)/3
Step6: Print total
Step7: Print Average
Step8: End
Flow charts
The flowchart is the diagrammatic representation of an algorithm. It shows the steps involved in solving a particular task.
Characteristics of the flow chart
- Different flowcharting symbols are used for different operations
- Flow lines are used to connect the flowcharting symbols.
- Flowcharts are read and drawn from top to bottom.
- The start symbol indicates the beginning of a program.
- The end symbol signifies the end of a program.
Flowchart symbols:
General evaluation
- _________ is the step by step procedure of solving a particular problem. (a) Problem (b) sequence (c) algorithm (d) symbol
- _________ is the diagrammatic representation of a step by step procedure of solving a particular problem. (a) Algorithm (b) Program (c) Flowchart (d) sequential solution
- The following are characteristic of a flowchart EXCEPT for one (a) Flowcharts are read and drawn from bottom to top (b) Flowcharts end symbol signifies the end of a program (c) Flow line are used to connect the flowchart symbols (d) Different flowchart symbols are used for a different operation.
- The flowchart symbol represents _____________ (a) Pre-define (b) Decision (c) Input (d) Processing
- The following are characteristic of an algorithm EXCEPT one. (a) They are written in sequence (b) An algorithm should be effective (c) It must be ambiguous and inconsistent (d) They are written in English like statement
- The actual writing or coding of a program in a particular programming language is known as________ (a) Debugging (b) Program Coding (c) Program Executing (d) Program Decoding
- The following are characteristics of a good program EXCEPT one. (a) Accuracy (b) Clarity (c) Compatible (d) Readability
- The following are characteristic of an interpreter EXCEPT for one (a) Execution is fast b. The resulting code is some sort of intermediate code c. The resulting code is interpreted by another program d. relatively little time is spent analyzing and processing the program
- _________ is a list of instruction issued to the computer to perform a particular task. (a) Algorithm (b) Computer program (c) Hardware (d) Peripherals
- One of the following is NOT a precaution be taken when writing a program. (a) No step should be skipped (b) The order of execution must be followed sequentially c. Do not rush d. The use of a step by step approach should not be followed
In our next class, we will be talking about Introduction to BASIC Programming. We hope you enjoyed the class.
Should you have any further question, feel free to ask in the comment section below and trust us to respond as soon as possible.
School Owner? Looking for ready-made content and tools to save time and grow easily? Book a free demo session nowGet more class notes, videos, homework help, exam practice on Android [DOWNLOAD]
Get more class notes, videos, homework help, exam practice on iPhone [DOWNLOAD]