Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Programming LAB 1 Tejalal Choudhary Asst. Prof, CSE Dept.

Similar presentations


Presentation on theme: "Computer Programming LAB 1 Tejalal Choudhary Asst. Prof, CSE Dept."— Presentation transcript:

1 Computer Programming LAB 1 Tejalal Choudhary Asst. Prof, CSE Dept.

2 Contents Flow Chart Algorithm History of “C” Programming Language
Character set Comments Keywords Compilation and execution

3 Algorithm An algorithm is a sequence of instructions to solve a particular problem in finite number of steps. In mathematics and computer science, an algorithm is a self-contained step-by-step set of operations to be performed. It is a problem solving technique. Algorithm: Addition of two numbers Step 1 : START Step 2 : DECLARE VARIABLES Step 3 : READ VALUE OF VARIABLES Step 4 : CALCULATE SUM AS SUM = A+B Step 5 : DISPLAY SUM Step 6 : END

4 Flow Chart It is a diagrammatic representation that illustrates the sequence of operations to be performed to get the solution of a problem. Flowcharts are drawn in the early stages of formulating computer solutions. Flowcharts facilitate communication between programmers and business people. The flowchart is drawn according to defined rules and using standard flowchart symbols prescribed by the American National Standard Institute, Inc.

5 Flow Chart Symbols

6 Sample flow chart

7 Flow chart for sum of 2 numbers

8 History of C C is a programming language developed at AT & T’s Bell Laboratories of USA in 1972. It was designed and written by Dennis Ritchie. It is a general purpose programming language used in development of system software and application software.

9 Character Set Any alphabet, digit or special symbol used to represent information Alphabets Digits Symbols

10 Comments Single line //this is a comment Multi line /* this is a comment */

11 Keywords Also known as reserved words
Meaning is already known to compiler Can not be used as user defined names


Download ppt "Computer Programming LAB 1 Tejalal Choudhary Asst. Prof, CSE Dept."

Similar presentations


Ads by Google