13
Computer Science Department Introduction To Computers and Programming Knowledge: Understand the concepts of computer, hardware, software and programming FTSM

Into 2 Com and Prog

Embed Size (px)

Citation preview

Page 1: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 1/13

Computer Science Department

Introduction To Computers andProgramming

Knowledge:

Understand the concepts of computer, hardware,software and programming 

FTSM

Page 2: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 2/13

 TK1913-C Programming  2 

What is a computer?

“A device or machine which can beprogrammed to receive data and performmanipulation, such as arithmetic calculation

and logic processing, and generate processeddata systematically” –  DBP 1995

Page 3: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 3/13

 TK1913-C Programming  3 

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

Page 4: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 4/13

 TK1913-C Programming  4 

Computer Hardware Input Devices

Capture/receive input from users

Central Processing Unit (CPU)

Execute instructions; compute, compare and transformdata

Primary Storage or Main Memory Temporary storage for data/programs

Output Devices Produce output/result

Secondary Storage Devices Permanent storage for data/programs

Page 5: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 5/13

 TK1913-C Programming  5 

Computer Hardware

Keyboard (Input Device)

Speaker

(Output

Device)

Hard disk (Secondary Storage)

Memory i.e. RAM & ROM

(Primary Storage)

Floppy disk (Secondary Storage)

CD ROM, DVD ROM(Secondary Storage)

Mouse (Input Device)

Printer (Output Device)

Monitor

Screen

(Output

Device)

Page 6: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 6/13

 TK1913-C Programming  6 

Computer Software Program 

An organized list of instructions that, when executed, causes thecomputer to behave in a predetermined manner.

Without programs, computers are useless. A program is like arecipe. It contains a list of ingredients (called variables) and a

list of directions (called statements) that tell the computer whatto do with the variables. The variables can represent numericdata, text, or graphical images.

Software 

An executable program that is run in the computer

2 types of software:

System Software 

Application Software 

Page 7: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 7/13

 TK1913-C Programming  9 

Computer SystemThe diagram below illustrates the anatomy of a computer

system

User

App. Software

Syst. Software

Hardware

Page 8: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 8/13

 TK1913-C Programming  10 

Computer Environment

Personal Computer

All components are directly connected and

not shared by others (stand-alone)

Time-sharing

Several users share hardware resources

Client-server Computer tasks are divided between central

computer and users’ computers 

Page 9: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 9/13

 TK1913-C Programming  11 

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

Page 10: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 10/13

 TK1913-C Programming  12 

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

Page 11: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 11/13

 TK1913-C Programming  13 

Programming Languages

Machine Language

Consists of code 0 and 1

The only language that computer understands

Symbolic/Assembly Language 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

Page 12: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 12/13

 TK1913-C Programming  14 

Types of Programming Structured

Pascal, C, COBOL, FORTRAN

Functional

Scheme, LISP Object-Oriented

Java, C++

Logic-based

Prolog

Scripts

Perl, Visual Basic, Javascript

Page 13: Into 2 Com and Prog

7/29/2019 Into 2 Com and Prog

http://slidepdf.com/reader/full/into-2-com-and-prog 13/13

 TK1913-C Programming  15 

End of Lecture 1

Yes !! That’s all?What’s next??? 

ALGORITHM on the

way …