Before we move towards C language. First we have to know what is Computer programming. And what are some important things which we must know to create any program or any coding for any software or a game.
Computers do “what we tell them to do”, NOT “what we want them to do”.
Computer Programming involves writing instructions and giving them to the computer to complete a task.
An Algorithm is sequence of steps, by which a computer can produce the required outputs from the available inputs. “An effective procedure for solving a class of problems in a finite number of steps.”
Pseudo code is an artificial and informal language that helps programmers develop algorithms. Pseudo code is very similar to everyday English.
A Flowchart is a visual representation of an algorithm. A Flowchart uses easy-to-understand symbols to represent actions on data and the flow of data. Flowcharts aid in breaking down a problem into simple steps.

Computers do “what we tell them to do”, NOT “what we want them to do”.
Computer Programming involves writing instructions and giving them to the computer to complete a task.
An Algorithm is sequence of steps, by which a computer can produce the required outputs from the available inputs. “An effective procedure for solving a class of problems in a finite number of steps.”
Pseudo code is an artificial and informal language that helps programmers develop algorithms. Pseudo code is very similar to everyday English.
A Flowchart is a visual representation of an algorithm. A Flowchart uses easy-to-understand symbols to represent actions on data and the flow of data. Flowcharts aid in breaking down a problem into simple steps.
Algorithm & Pseudo code [ Example 1 ]
Write an algorithm to determine a student’s final grade and indicate whether it is passing or failing. The final grade is calculated as the average of four marks.
Pseudo code:
Input a set of 4 marks
Calculate their average by summing and dividing by 4
if average is below 50
Print “FAIL”
else
Print “PASS”
Algorithm
Step 1: Input M1,M2,M3,M4
Step 2: GRADE ← (M1+M2+M3+M4)/4
Step 3: if (GRADE < 50) then
Print “FAIL”
else
Print “PASS”
endif
No comments:
Post a Comment