18
Programming for daily life JOY GEORGE K Jr.Architect Orion India Systems www.joymononline.in www.joymonscode.blogspot.in

Programming for daily life - introduction

Embed Size (px)

DESCRIPTION

Teaches programming to non programmers such as Testers, Office administrators, marketing people, system admins etc...It uses famous educational programming language called Karel for demonstrating different programming techniques. It covers IF statement, For Loop and creation and usage of Functions. It also tells little bit of programmable machine's history along with some introduction to digital electronics.

Citation preview

Page 1: Programming for daily life - introduction

Programming for daily life

JOY GEORGE K Jr.Architect Orion India Systemswww.joymononline.inwww.joymonscode.blogspot.in

Page 2: Programming for daily life - introduction

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)

Page 3: Programming for daily life - introduction

Programmer, Program, Machine& Executor

Executor

Program

Slow execution

Inputs

Page 4: Programming for daily life - introduction

Little history Abacus

Page 5: Programming for daily life - introduction

History I would say a wheel also has a program which is kind of hard coded

Input - pressureOutput - Rotation

Page 6: Programming for daily life - introduction

History – programing wheels Arranging wheels in different ways produce different programs.

Page 7: Programming for daily life - introduction

Machines around usBit – On / Off

Page 8: Programming for daily life - introduction

Circuit Machines which accept more than one on/off conditions (1 bits) as input

Page 9: Programming for daily life - introduction

The language of circuits – 2 way switches

S1 S2S1 S2 Output

0 1 0

1 0 0

1 1 1

0 0 1

Page 10: Programming for daily life - introduction

CPU – Universal circuitGive me any

circuit diagram. I can act like

that

Page 11: Programming for daily life - introduction

When I don’t know programming?

I need water

पा�नी� ला�नी�

TranslatorWorkers

Page 12: Programming for daily life - introduction

It fails sometime

For drinking

पा�नी� के� लिलाए पा�नी� ला�नी�

Better ask him write down and

fire him

Page 13: Programming for daily life - introduction

Why should I learn programming

पा�नी� के� लिलाए पा�नी� ला�नी�.Hot..Hot..

Oh…God Forgot to ask him how to ask hot water

Page 14: Programming for daily life - introduction

Objects in programmingProgram

Machine / Executor

Input

Output

Page 15: Programming for daily life - introduction

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

Page 16: Programming for daily life - introduction

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

Page 17: Programming for daily life - introduction

TheoryTuring machine & Universal Turing machine.

Machine code

High level language

Compiling v/s interpreting

Page 18: Programming for daily life - introduction

Thanks for asking questions

Jr.Architect Orion India Systemswww.joymononline.inwww.joymonscode.blogspot.in

JOY GEORGE K