Wednesday, 19 May 2021

// // Leave a Comment

What to do before start learning programming ?

 Introduction

First we should learn how a computer works inside. Why algorithms are needed for computation? Why memory is needed? Basically every computer program have three parts accept user input, process the computation, display the output(result). The algorithms are used to do the computation and memory is needed to store the desired output(result). 

What is  an algorithm? 

Algorithm is a set of rules that defines how a particular problem can be solved in a finite number of steps. ( Algorithm is the step by step solution to a given  problem) It start with a start keyword and ends with a stop keyword.




Example

Algorithm for adding two numbers

Step 1: Start

Step 2: Input two numbers

Step 3: Process ( calculate the sum)

Step 4: Display the output

Step 5: Stop

After writing algorithm we have to draw the pictorial part to study the problem easily. for that one concept is there flowchart.

What is a flowchart?

Flowchart is the pictorial representation of the algorithm. It is the easier way to understand the problem. There are different flowchart symbols

   Flowchart symbols                                                                         Flowchart for adding two numbers

0 Comments:

Post a Comment