0% found this document useful (0 votes)
20 views

CSP Lecture 1.........

This document provides an introduction to computer programming concepts. It explains that a program is a set of instructions to perform a task, with each instruction telling the computer to do something very specific. The art of programming is taking a complex idea and breaking it down into clearer, simpler instructions. It emphasizes that the order and correctness of instructions is important. An example is given of writing instructions for making tea. Programming languages use statements with syntax like words and punctuation to express instructions. The course will cover fundamentals of computing, programming tools like C++, and will be assessed through quizzes, assignments, and exams.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

CSP Lecture 1.........

This document provides an introduction to computer programming concepts. It explains that a program is a set of instructions to perform a task, with each instruction telling the computer to do something very specific. The art of programming is taking a complex idea and breaking it down into clearer, simpler instructions. It emphasizes that the order and correctness of instructions is important. An example is given of writing instructions for making tea. Programming languages use statements with syntax like words and punctuation to express instructions. The course will cover fundamentals of computing, programming tools like C++, and will be assessed through quizzes, assignments, and exams.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 27

Computer Systems &

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)

You know how to reach the salon from


Sophia’s location, because you travel every
day and your brain is programmed to do so.
Sophia needs to be programmed to do this
task. What instructions would you give to
Sophia to program her to do this task?
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.
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

Specific, individual, simple, clear and


self-contained instructions
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.
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
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

Write down a sequence of instructions for “making tea”

1. Boil some water.


2. Place a tea bag into the cup.
3. Add some whitener and sugar.
4. Pour on boiling water.
5. Stir tea bag.
6. Remove tea bag and serve.
Programming
• We use a programming language to give instructions to the computer by
writing what are called ‘statements’.
• In English language, we use sentences with words, numbers and
punctuation to express a thought or one piece of information. The same
is true for statements in a programming language.
• The words, numbers and punctuation in a programming language are
called syntax. Each programming language has its own syntax
BASIC: LET Balance = 5000
Java/C++: balance = 5000;
AppleScript: set balance to 5000
About the Course
• Fundamentals of Computing and Programming (Course)
• Tools (Lab)
• Computer
• Windows OS
• Internet
• Microsoft Office (Word, Excel, Powerpoint)
• C++ Programming
• Learning Resources
• Internet (highly recommended)
• Charles S. Parker, “Understanding Computers: Today and Tomorrow”
• Anita Goel, “Computer Fundamentals”
• Deitel and Deitel, “C++ How to Program”
• Jesse Liberty and Bradley Jones, “SAMS Teach yourself C++ in 21 days”
Assessment
Your understanding of the course will be assessed regularly through
• Quizzes
• Lab Tasks
• Assignments
and periodically (or once) through
• OHTs (two)
• Presentation
• Final Exam
Advice
• No use of cell phones, no talking during lectures!
• Keep up with the lectures and participate actively in class.
• Feel free to stop me when I talk too fast or too slow.
• Make sure that you understand the concepts presented in the lecture
before you go home.
• If you feel that the class is very easy, you might overlook something.
If you feel that the class is very difficult, you are probably not the only
one who feel that way.
Enjoy your time at IST!

You might also like