GSS110 Week1 Topic 1 Introduction
GSS110 Week1 Topic 1 Introduction
FUNDAMENTAL OF
COMPUTER
PROGRAMMING
Week 1
TOPIC 1
Prepared By
Sr Dr. KHAIRULAZHAR BIN ZAINUDDIN
Course Description
This course introduces students to the basic
computer programming language. Students
are expected to solve Geomatics tasks using
programming procedures.
2 credit unit
• 1h lecture
• 2h lab exercise
1
3/27/2022
Learning Outcomes
Student should be able to:
1. Explain the theoretical concept and procedures
for a simple programming/coding (C2)
2. Relate the basic computer programming
techniques in writing a small/simple and
executable program (P1)
3. Describe in writing a program knowledge and
skills to solve a selected Geomatics issue (P1)
Lecture Laboratory
Introduction (2h) Introduction to C++ structure (8)
Basic Elements of Computer Program (4h) Control Structure & Statement (16)
Control Structure & Statement (6h) Input File and Output File (4h)
Input and Output File Stream (2h)
2
3/27/2022
• 1h for lecture
• 2h for lab
• *Make sure be prepared before entering the
class and lab session!
Assessment
100% Course Work
Written Test (CLO1, C2) : Lab Test (CLO2, P1) : Group Project (CLO3,
40% 10% P1) : 50%
Individual Individual Week 12 - 15
Test on Topic 1 and 2 Lab Test 1 : 10%
Week 6 Week 14
3
3/27/2022
Week 1 Topic 1
Lesson content:
1. Introduction to computer programming
2. Components of the computer program
4
3/27/2022
Introduction to
computer programming
Software
Apps
Hardware driver
Introduction to
Computer
The computer is an electronic device that
accepts input, processes data, storing data
and generates the output
10
5
3/27/2022
Categories of
Computers
• Mainframe computers
• Midsize computers
• Micro computers (personal
computers)
11
A Brief Overview
of the History of
the Computers
12
6
3/27/2022
Software
13
System program
• To control the computer
• Operating system (Windows, macOS, Linux)
Application program
• To perform a specific task
• Word processor, spreadsheet, presentation
• Games, CAD,
14
7
3/27/2022
Computer Program
• Computer is a machine – thus only
understand the machine language.
• Machine language is a low-level language
comprised of binary numbers
1011010000000101
• Computer (and all digital devices) only
recognizes the binary data
16
8
3/27/2022
Human-to-computer?
17
18
9
3/27/2022
19
20
10
3/27/2022
21
22
11
3/27/2022
High-level language
• 3rd Generation – Procedural languages
• 4th Generation - Problem-oriented language
– Fortran, COBOL, Pascal.
5th Generation
• Natural languages.
• Use human language to give people a more natural
connection with the computer.
23
24
12
3/27/2022
25
26
13
3/27/2022
27
28
14
3/27/2022
29
• Program’s Efficiency
– Good program should be reliable and efficient in the sense
that it produces no errors during the execution process
– Program must achieve its purpose so that the result can be
trusted
– Use of pseudocode or flowchart to outline the program
30
15
3/27/2022
• Program readability
– Readability is concerned with how other person views one’s
program
– Use of indention and comment increase the level of
readability
31
Wrap up
• Computer is a device to help humans in their
daily lives.
• Computer is driven by a series of instructions
known as a computer program – without the
program computer is useless.
• Humans can write the program using natural
language.
32
16
3/27/2022
Wrap up
• Computer only understand the machine
language; thus, the program need to be
translated into machine language using
compiler.
33
END OF LECTURE
34
17