CSP Lecture 1.........
CSP Lecture 1.........
Programming
Lecture 01 (Introduction)
Programming
• A program is a set of instructions to perform a task.
Task: Sophia needs to go to a beauty salon. Sophia is currently at the intersection of street 1 and lane 5. The salon
located at the intersection of street 5 and lane 3)
TURN RIGHT
MOVE FORWARD
TURN RIGHT
TURN RIGHT
TURN RIGHT
MOVE FORWARD
Programming
• A program is a set of instructions to perform a task.
• Each instruction tells the computer to do something very small but
very specific.
• The art of programming is to take a complex idea and break it apart
into specific, individual and simpler instructions.
• The correctness and sequence of these instructions is vitally
important. If we mix the sequence or give a wrong instruction, we get
very different results.
Programming
• Activity