Professional Documents
Culture Documents
Information Technology
Lecture 8
Introduction To Programming
Study Plan
O What is Programming?
O How do we write a Program?
O What are Data Types?
O Common Programming Errors
O Skills helpful in Thriving Computer
Programming
2
What is Programming?
3
What is Programming?
O Programming – The activity of writing out
instructions for solving a problem or
performing a task
4
What is Programming?
O Some basic programming tasks that involves
finite steps to be followed in a logical sequential
order
O Lifting a Paper
O Brushing Teeth
5
What is Computer Programming?
O Computer – A programmable device that can
store, retrieve, and process data
6
Computer Programming
8
How Do We Write Program?
9
How Do We Write Program?
O Problem-Solving Phase
O Understand (define) the problem and identify
what the solution must do
O Specify the tasks/steps to solve the problem
O Follow the steps exactly to see if the solution
really does solve the problem
10
How Do We Write Program?
O Implementation Phase
• Translate the general solution into a
programming language
• Have the computer carry out the solution and
check the results
• What if the solution isn't correct?
11
How Do We Write Program?
O Maintenance Phase
• Use the program
• Modify the program to meet changing
requirements, to enhance its functionality, or to
correct any errors that show up in using it
12
Is there a shortcut?
13
Data Types
1. Syntax Errors
2. Logic Errors
3. Runtime Errors
computer-programming/