APA ITU KOMPUTER - .: FTSM - Fakulti Teknologi dan Sains

Download Report

Transcript APA ITU KOMPUTER - .: FTSM - Fakulti Teknologi dan Sains

Introduction To Computers and
Programming
Knowledge:
Understand the concepts of computer, hardware,
software and programming
Computer Science Department
FTSM
What is a computer?
“A device or machine which can be
programmed to receive data and perform
manipulation, such as arithmetic calculation
and logic processing, and generate processed
data systematically” – DBP 1995
TK1913-C Programming
2
History of Computer

The 1st electronic computer was created by Dr John
Atanasoff and Clifford Berry in year 1930s at Iowa State
University. It was intended for postgraduate students in
nuclear physics to calculate complex arithmetics

ENIAC (electronic digital computer) was created in year
1946 at University of Pennsylvania under the American
Defense’s financial assistance. Its weight was 30 tans
and size was 30x50 square feet

1950 - now => Microcomputer (workstation),
minicomputer, mainframe and supercomputer
TK1913-C Programming
3
Computer Hardware

Input Devices


Central Processing Unit (CPU)


Temporary storage for data/programs
Output Devices


Execute instructions; compute, compare and transform
data
Primary Storage or Main Memory


Capture/receive input from users
Produce output/result
Secondary Storage Devices

Permanent storage for data/programs
TK1913-C Programming
4
Computer Hardware
CD ROM, DVD ROM
(Secondary Storage)
Floppy disk (Secondary Storage)
Speaker
(Output
Device)
Hard disk (Secondary Storage)
Memory i.e. RAM & ROM
(Primary Storage)
Monitor
Screen
(Output
Device)
TK1913-C Programming
Keyboard (Input Device)
Printer (Output Device)
5
Mouse (Input Device)
Computer Software

Program



An organized list of instructions that, when executed, causes the
computer to behave in a predetermined manner.
Without programs, computers are useless. A program is like a
recipe. It contains a list of ingredients (called variables) and a
list of directions (called statements) that tell the computer what
to do with the variables. The variables can represent numeric
data, text, or graphical images.
Software


An executable program that is run in the computer
2 types of software:
 System Software
 Application Software
TK1913-C Programming
6
Computer System
The diagram below illustrates the anatomy of a computer
system
User
App. Software
Syst. Software
Hardware
TK1913-C Programming
9
Computer Environment

Personal Computer


Time-sharing


All components are directly connected and
not shared by others (stand-alone)
Several users share hardware resources
Client-server

Computer tasks are divided between central
computer and users’ computers
TK1913-C Programming
10
Roles of Computer

Data Processing


Transform raw data into organised and
meaningful information
Control

Control tools that are difficult to be controlled
by human

Design and Development

Data Communication
TK1913-C Programming
11
Concepts of Programming



A planning process for a sequence of instruction
to be executed by the computer
Programming is performed to solve a particular
problem
Phases involved:





Problem Analysis
General Solution (Algorithm)
Validation
Detailed Solution (Coding)
Testing
TK1913-C Programming
12
Programming Languages

Machine Language



Symbolic/Assembly Language



Consists of code 0 and 1
The only language that computer understands
Uses symbols or mnemonic to represent machine
language instruction
Needs to be translated into machine language
High-Level Language


Resembles human language. E.g. English Language
Needs to be translated into machine language
TK1913-C Programming
13
Types of Programming

Structured


Functional


Java, C++
Logic-based


Scheme, LISP
Object-Oriented


Pascal, C, COBOL, FORTRAN
Prolog
Scripts

Perl, Visual Basic, Javascript
TK1913-C Programming
14
End of Lecture 1
Yes !! That’s all?
What’s next???
ALGORITHM on the
way …
TK1913-C Programming
15