- Computer Fundamental
- Computer Fundamental Home
- What is Computer ?
- Block Diagram of Computer
- History of Computer
- Types of Computer
- Classification of Computer
- Characteristics of Computer
- Applications of Computer
- Components of Computer
- Central Processing Unit (CPU)
- Input Devices
- Output Devices
- Computer Memory & Types
- Computer Hardware
- Computer Software
- Computer Motherboard
- CD, HD, Floppy & PenDrive
- Computer Languages
- Types of Computer Languages
- Language Translator & Types
- LCD TV & Plasma TV
- EBCDIC & ASCII Code
- BCD, Excess-3, 2421, Gray Code
- Number System with Types
- Decimal to Binary
- Decimal to Octal
- Decimal to Hexadecimal
- Binary to Decimal
- Binary to Octal
- Binary to Hexadecimal
- Octal to Decimal
- Octal to Binary
- Octal to Hexadecimal
- Hexadecimal to Decimal
- Hexadecimal to Binary
- Hexadecimal to Octal
- Algorithm and Flowchart
- Selection Sort
- Insertion Sort
- Bubble Sort
- Linear Search
- Binary Search
- Bitwise Operators
- Binary Number Addition
- Unicode Characters
- Binary Sequence
- Give Online Test
- All Test List
- Computer Fundamental Test

« Previous Tutorial Next Tutorial »

Here in this article or tutorial, we will learn about algorithm and flowchart in detail with it's examples. Let's start with algorithm.

Algorithm is a step by step description of how to arrive at a solution of any given problem.

Or you can say that, an algorithm of any program is the step by step solution description of the given program or problem.

In order to qualify as an algorithm, a sequence of instruction must posses these characteristics:

- Each instruction written should be precise and unambiguous
- Each instruction should be executed at a finite time
- None of any instruction should be repeated infinitely
- After executing all the given instruction, the desired result must be obtained

Now let's take an example of algorithm, that how we can write an algorithm of a given problem.

Here we have to write an algorithm or the step by step solution description of finding sum of first N numbers.

1.Read the value of n2.Put i=1, sum=03.if(i>n) go to step 74.Update s = s + i5.Update i = i+16.go to step 37.Print the value of s8.Stop

As you can see from the above algorithm written in 8 steps, helps you to make a program of finding sum of first N numbers.

Here we have to write an algorithm that will helps in finding the smallest and largest number from the given list of numbers.

1.Read list of all numbers2.Assign the first number as largest number3.Assign the first number as smallest number4.Repeat step 5, 6 and 7 as long as the largest and smallest number are there5.Read number and check for largest and smallest with comparision6.If the number is greater than largest then the current number is the largest.7.If the number is lesser than smallest then the current number is the smallest.8.Print Largest Number9.Print Smallest Number10.Stop

Now you can easily apply all the above given steps to make your program that will find the largest and smallest number from the given list of numbers.

Flow chart is the pictorial representation of any given task or problem or program.

There are two types of flow charts, given here with its short description:

**System Flow Charts**- These flowcharts describe the logical flow of the process, actually the sequence of events in business that happens before something is achieved**Program Flow Charts**- This is a flowchart of a single program in high level language. This type of flow charts have the file names used for input, output, update of the files accessed and the names of the reports that might be created after the program run. It means, program flow charts contains each and every single details of the program

Here are some of the main and primary advantages of using the flow charts before applying any solution to a program:

**Effective Analysis**- Using flow chart, any problem can be analyzed in more effective way**Communication**- Flowcharts are much better way of communicating any logic of a system to all concerned**Efficient Coding**- Every flowcharts acts as a guide or blueprint during the systems analysis and program development phase**Proper Debugging**- The flowcharts helps in debugging process**Efficient Program Maintenance**- The maintenance of operating program becomes very easy using flowcharts.- Proper Documentation - Program flowcharts serve as a good program documentation, which is needed for various purposes

Here are the list of some primary or main disadvantages of using flowcharts for any given problem:

**Complex Logic**- Sometime, the given program logic is quit complicated. In that case, it becomes very difficult task to design or draw a flowchart for that problem or program. In that case, algorithm helps a lot**Alterations and Modifications**- If we want to alter or change any logic of the program in the flowchart, then we have to re-draw the whole flowchart which is very irritating.

The American National Standard Institute (ANSI) has standardized these given basic flow chart symbols.

Terminal symbol is used to indicate the start and end of the program. Here is the symbol of terminal:

A parallelogram is used to represent an input and output representation or operation. Here is the demo symbol of a input/output used in flowchart:

To represent any processing operation in flowchart, we have to use the rectangle symbol. Here is the demo symbol of rectangle used in drawing flowchart to use storage or arithmetic operation:

To indicate the step of decision making statement, we have to use diamond shaped box. Here is the demo symbol of diamond shaped box:

Flow of lines indicates the path of logic flow in a program. Between each boxes used in flowchart, we have to use lines to indicate where the program flow goes. Here is the demo symbol of lines flow:

We have to use circle to join different parts of a flowcharts. Here is the demo symbol of circle used in flowchart:

Now let's take an example of flowchart to understand it in a clear way that how to use all the symbols given above and draw pictorial representation that tells the solution of any program or problem.

Here the figure given below shows the flowchart that helps in finding the largest of three numbers:

Below is another flowchart of finding the sum of first N natural numbers:

Computer Fundamental Online Test

« Previous Tutorial Next Tutorial »

© Copyright 2021. All Rights Reserved.