Programming for daily
life
JOY GEORGE K

Jr.Architect Orion India Systems
www.joymononline.in
www.joymonscode.blogspot.in
Agenda
What 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

Inputs

Program

Slow
execution
Little history
Abacus
History
I would say a wheel also has a program which is kind of hard coded

Input - pressure
Output - Rotation
History – programing wheels
Arranging wheels in different ways produce different programs.
Machines around us
Bit – On / Off
Circuit
Machines which accept more than one on/off conditions (1 bits) as input
The language of circuits – 2 way
switches
S1

S2
S1

S2

Output

0

1

0

1

0

0

1

1

1

0

0

1
CPU – Universal circuit
Give me any
circuit
diagram. I can
act like that
When I don’t know programming?
I need
water

Workers

Translator
It fails sometime

Better ask
him write
down and
fire him
For
drinking
Why should I learn programming
.Hot..Hot..

Oh…God
Forgot to
ask him
how to
ask hot
water
Objects in programming
Program
Machine / Executor
Input
Output
Karel – A simple robot
A Programming language used for educational purpose
http://en.wikipedia.org/wiki/Karel_(programming_language)

Supported operations
Move()
TurnLeft()

Simulator
http://joymononline.in/apps/karel/karel.htm
Making more tasks using Karel
Dynamic decision making using IF keyword
Repeat same job using LOOPING
Keep the instructions of one job in group called FUNCTION
Theory
Turing machine & Universal Turing machine.
Machine code
High level language
Compiling v/s interpreting
Thanks for asking questions
JOY GEORGE K
Jr.Architect Orion India Systems
www.joymononline.in
www.joymonscode.blogspot.in

Programming for daily life - introduction

Editor's Notes

  • #10 The truth table in digital electronics. It represents the requirements of program.
  • #12 Workers – Who knows only Hindi language can be compared as computers which understands only machine language.Translator - is the programmer who converts the English instruction to Hindi. In computer world form natural language specifications to machine code.User – The company/person who invested in Workers /Computers and wants to get maximum output.
  • #13 When it fails – If the translation has errors or the user didn’t specify correctly to the translator. Workers may bring water for cleaning if not specified for drinking.
  • #14 User asked for more options in the program. But still it may fail on particular scenarios. So better user knows the basics of programming.
  • #15 Objects every where in programming.
  • #16 Karel is a simulator based programming language used in universities such as Stanford to teach programming.
  • #17 Open the http://joymononline.in/apps/karel/karel.htm simulator and show if statements, for loop and need for functions.