INTRODUCTION TO
PROGRAMMING
Sanjeev Das 28th Oct 2013
Why should I learn to program?
It empowers you and gives you tools express yourself in really cool ways Controls Robots and Machines Getting computer to solve complicated problems Turning creativity into an interactive reality Ideas made accessible to millions
Games and Apps teach programming logic and concepts before you can read.
Like learning a language, its best done young
Logic
Condition If ( a > b) { c = a b; . . } } If ( a < b ) { c= b a; . .
Loop
for (int i=0 ; i<5 ; i++) { //repeat 5 times.
Exercise
Todays Exercise
1 2 3
Using Visual Studio create a new project
Add library to project Write simple program using C#
Programming Steps
Show the turtle on screen Move the turtle on screen Turn the turtle 90 degree Repeat step 4 times Change color of line Set the speed of animation
THANK YOU