Csc402:Programming I: Chapter 1: Introduction
Csc402:Programming I: Chapter 1: Introduction
CHAPTER 1: INTRODUCTION
PLANNING
WEEK 7 WEEK 9
NOW Chapter 2 Chapter 4 Goal
Nov Dec
Dec Dec
WEEK 6 WEEK 8 WEEK 10
Chapter 1 Chapter 3 Chapter 5
DO YOU REMEMBER?
What is a computer?
What is the basic operations of a computer?
First computer language?
Second programming language?
Third level of programming language?
BASIC OPERATION OF A COMPUTER
PROGRAM AND PROGRAMMING
Program Programming
■ Program is made up of
■ A process of problem
sequence of instructions and
solving.
decisions that the computer
carries out to achieve a
specific task.
PROGRAMMING LANGUAGE
Programming Computer
language language
Language used to write Low level: Assembly
computer program, it Language
allows human to High level: C, C++
communicate instructions
to machines.
Programming
paradigm
Object-oriented
Functional
Logic
COMPILATION PROCESS
Process:
Output
PROGRAM DEVELOPMENT
LIFE CYCLE
1. ANALYZE THE PROBLEM
2. DESIGN THE SOLUTION
Pseudocode
2. DESIGN THE SOLUTION
Flowchart
ACTIVITY 1
1. Calculate the amount a person has to spend on petrol if the price of the petrol is RM2.10
per liter. The amount of petrol used is received as input.
2. Receives the age of a person in years and display the age in days. Assumed that a year
has 365 days.