computer science department introduction to computers and programming knowledge: understand the...

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

Upload: nicolette-hesley

Post on 30-Mar-2015

216 views

Category:

Documents


3 download

TRANSCRIPT

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

Computer Science Department

Introduction To Computers and Introduction To Computers and ProgrammingProgramming

Knowledge:Understand the concepts of computer, hardware, software and programming

FTSMFTSM

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

TK1913-C ProgrammingTK1913-C Programming 22

What is a computer?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

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

TK1913-C ProgrammingTK1913-C Programming 33

History of ComputerHistory 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: Computer Science Department Introduction To Computers and Programming Knowledge: Understand the concepts of computer, hardware, software and programming

TK1913-C ProgrammingTK1913-C Programming 44

Computer HardwareComputer Hardware Input Devices

Capture/receive input from users Central Processing Unit (CPU)

Execute instructions; compute, compare and transform data

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: Computer Science Department Introduction To Computers and Programming Knowledge: Understand the concepts of computer, hardware, software and programming

TK1913-C ProgrammingTK1913-C Programming 55

Computer HardwareComputer 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: Computer Science Department Introduction To Computers and Programming Knowledge: Understand the concepts of computer, hardware, software and programming

TK1913-C ProgrammingTK1913-C Programming 66

Computer SoftwareComputer 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

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

TK1913-C ProgrammingTK1913-C Programming 99

Computer SystemComputer SystemThe diagram below illustrates the anatomy of a computer system

UserUser

App. SoftwareApp. Software

Syst. SoftwareSyst. Software

HardwareHardware

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

TK1913-C ProgrammingTK1913-C Programming 1010

Computer EnvironmentComputer 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: Computer Science Department Introduction To Computers and Programming Knowledge: Understand the concepts of computer, hardware, software and programming

TK1913-C ProgrammingTK1913-C Programming 1111

Roles of ComputerRoles 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: Computer Science Department Introduction To Computers and Programming Knowledge: Understand the concepts of computer, hardware, software and programming

TK1913-C ProgrammingTK1913-C Programming 1212

Concepts of ProgrammingConcepts 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: Computer Science Department Introduction To Computers and Programming Knowledge: Understand the concepts of computer, hardware, software and programming

TK1913-C ProgrammingTK1913-C Programming 1313

Programming LanguagesProgramming 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: Computer Science Department Introduction To Computers and Programming Knowledge: Understand the concepts of computer, hardware, software and programming

TK1913-C ProgrammingTK1913-C Programming 1414

Types of ProgrammingTypes of Programming Structured

Pascal, C, COBOL, FORTRAN Functional

Scheme, LISP Object-Oriented

Java, C++ Logic-based

Prolog Scripts

Perl, Visual Basic, Javascript

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

TK1913-C ProgrammingTK1913-C Programming 1515

End of Lecture 1End of Lecture 1

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

ALGORITHMALGORITHM on the on the way … way …