Programming Concepts 01
Click here to load reader
-
Upload
learn-2-be -
Category
Technology
-
view
737 -
download
0
Transcript of Programming Concepts 01
![Page 2: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/2.jpg)
Programming concepts
What is a computer program?? Program structure. Variables declaration. Comparision Operators. Flow control. Iterative statements (loops). Functions. Eventdriven or non Eventdriven. Generic or specialpurpose.
![Page 3: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/3.jpg)
What is computer program?
Computer program is collections of instructions that tell a computer how to interact with the user interact with the computer hardware and process data.
![Page 4: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/4.jpg)
Program structure
Statements to establish the start of the program . Variable declaration. Program statements.
![Page 5: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/5.jpg)
Variables
Variables are places for holding data in memory.
Types of variables: Integer. Real(float). Characters. Strings.
![Page 6: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/6.jpg)
Comparision and logical operators
Comaparision (equal ,greater than,less than,not equal).
Logical (and,or,not).
![Page 7: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/7.jpg)
Control flow
If (condition). (statements). Else. (statements).
![Page 8: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/8.jpg)
Iterative statements
Used to repeate a section of code for certain amount of times.
![Page 9: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/9.jpg)
Functions
simply contain a series of computational steps to be carried out. Any given procedure might be called at any point during a program's execution, including by other procedures or itself.
![Page 10: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/10.jpg)
Eventdriven and non eventdriven
What is the difference?? Examples of events: Program load. mouse click. Key press. Program end.
![Page 11: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/11.jpg)
Generic or special purpose??
Generic or general purpose programming language.
Special purpose:
SQL.
Markup languages (HTML,XML).
![Page 12: Programming Concepts 01](https://reader038.fdocuments.in/reader038/viewer/2022100600/555171cfb4c905723b8b4d47/html5/thumbnails/12.jpg)
Useful sites
Programming concepts:➢ http://cisnet.baruch.cuny.edu/holowczak/classes/
programming/ Language categories:➢ http://en.citizendium.org/wiki/Programming_langu
age Programming language comparison:➢ http://en.wikipedia.org/wiki/Comparison_of_progr
amming_languages