350 likes | 540 Views
This presentation is about introduction to Programming. This does not teach you any programming language or any techniques. This is only for novices who would like to understand what programming really is. Again, this is only for novices and not for people who already know what programming is.
E N D
What this is about ? 1. How does a computer work ? 2. What is a Program ? 3. How a computer does what it does ? 4. What exactly is a programming language? 5. For extreme newbies
What this is not about ? 1. Not an introduction to any language 2. Not about programming techniques 3. Not for people who know programming
Communications Play Movie Game Banking Maps & many more things
But, how does a computer know to do these things ?
A computer is a general purpose device that can be programmed to perform various tasks.
Wait a minute, What is a PROGRAM ?
The computer understands only0s and 1s 001110010101010101001110101
We only understand Spoken Languages like English Hello there :)
How do we bridge this gap ? Hello there :) 001110010101010101001110101
Here is alien called ZUZU. He only speaks in Alien Language. &(**(@#^$^
Here is a kid, VIKI. He only speaks in English. Hello there :)
How will they communicate ? Hello there :) &(**(@#^$^
A Translator :) Hello there :) &(**(@#^$^ Hello there :) &(**(@#^$^
Hello there :) 001110010101010 Translator
A Compiler is a computer program that transforms a human readable source into a machine readable code.
Text Editor A programmer writes a human readable program Source Code Compiler A Compiler transforms it to a machine readable code Machine Code CPU The CPU performs the instructions Output Output Device An output device shows the output of the program
What does a Source Program look like ? Can I write it in English ?
Not possible right now. The compiler would be too complex.Our Languages are filled with ambiguity.
We write the source programs in a Programming Language. • Specifically designed to instruct the computers. • Have strict syntaxes. • Have special symbols to perform special duties. • Un-ambiguous. • Examples : C, C++, JAVA, .net, etc...
An example program in C #include<stdio.h> main() { printf(“Hello World”); }
They are highly efficient in doing what they are told to do.They don’ think on their own. 1 A B 2 3
Be smart in instructing, it will make the computer smart :) Its all about the Program. 1 A 2 B 3