Programming for daily life
JOY GEORGE K Jr.Architect Orion India Systemswww.joymononline.inwww.joymonscode.blogspot.in
AgendaWhat is computer, program, input and output? Who is programmer?
Some history
Evolution of computers
Why I should learn programming
Writing first program
Basic things you know when writing programs?
Some theory (Only if time and you permits)
Programmer, Program, Machine& Executor
Executor
Program
Slow execution
Inputs
Little history Abacus
History I would say a wheel also has a program which is kind of hard coded
Input - pressureOutput - Rotation
History – programing wheels Arranging wheels in different ways produce different programs.
Machines around usBit – On / Off
Circuit Machines which accept more than one on/off conditions (1 bits) as input
The language of circuits – 2 way switches
S1 S2S1 S2 Output
0 1 0
1 0 0
1 1 1
0 0 1
CPU – Universal circuitGive me any
circuit diagram. I can act like
that
When I don’t know programming?
I need water
पा�नी� ला�नी�
TranslatorWorkers
It fails sometime
For drinking
पा�नी� के� लिलाए पा�नी� ला�नी�
Better ask him write down and
fire him
Why should I learn programming
पा�नी� के� लिलाए पा�नी� ला�नी�.Hot..Hot..
Oh…God Forgot to ask him how to ask hot water
Objects in programmingProgram
Machine / Executor
Input
Output
Karel – A simple robotA Programming language used for educational purpose
http://en.wikipedia.org/wiki/Karel_(programming_language)
Supported operationsMove()TurnLeft()
Simulatorhttp://joymononline.in/apps/karel/karel.htm
Making more tasks using KarelDynamic decision making using IF keyword
Repeat same job using LOOPING
Keep the instructions of one job in group called FUNCTION
TheoryTuring machine & Universal Turing machine.
Machine code
High level language
Compiling v/s interpreting
Thanks for asking questions
Jr.Architect Orion India Systemswww.joymononline.inwww.joymonscode.blogspot.in
JOY GEORGE K
Recommended