21
Chapter I: Introduction to Computer Science

Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Embed Size (px)

Citation preview

Page 1: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Chapter I: Introduction to Computer Science

Page 2: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Computer: is a machine that accepts input data, processes the data and creates output data.

This is a specific-purpose concept of computer

What is computer?

Page 3: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

• Today’s computer is general purpose machine “Programmable computer”

• A program is a set of instructions that tells the computer what to do with data.

• Early days, computer program used to be implemented by changing the wiring or turning a set of switches on and off. Today, a program written in computer language

Page 4: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

• In programmable computers, the output data depend on:

1. The Input data

Page 5: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

2. The program

Page 6: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Von Neumann Model• Named after John von Neumann• Von Neumann Model consists of:1. Memory: storage area, where programs are

stored during processing.2. Arithmetic Logic Unit (ALU): where calculations

and logic operations take place.3. Control Unit: Controls the operation of memory,

ALU and input/output subsystems.4. Input/Output: Input units accept input data(e.g.

keyboard….). While output units demonstrate output data ( monitor….)

Page 7: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Von Neumann Model

Page 8: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Von Neumann, EDVAC, 1950

Page 9: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Stored Program Concept• Von Neumann model states that program

must be stored in memory unlike early computer where only data are stored.

Sequential Execution of Instructions• Control Unit executes the set of a program’s

instructions one after another (sequentially)

Computer Hardware• Computer Hardware Must include all four

parts of von Neumann Model

Page 10: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Data Storage and Organization• Data storage:– Data stored as electrical signal.– Computer stores data in Binary form (0,1).– All sort of input data must be transferred into binary

data.

• Organizing Data:– Data are organized into small units, small units are

organized in larger units.

Page 11: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Computer software

According to Von Neumann Model: • Program must be stored in the memory.• Program must be a sequence of instructions• Program is made of instructions• Instructional format of programming support

“reusability” of programming in different platforms.

Page 12: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Algorithms• In order to structure a program to solve a specific

problem, computer programmer must break down the program into steps, each step is an instruction, those step-by-step solution is called algorithms

Language• Computer language is (in concept) similar to

human language, though very limited.• Computer language is made of set of symbols

each symbol represents an instruction.

Page 13: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Software Engineering• Is the design of structured programs following

strict principles and rules of programming languages.

Operating Systems• Works as an interface between computer

program and computer componants.

Page 14: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Pascaline, 17th century

Page 15: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Leibnitz’s Wheel, 17th century

Page 16: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Jacquard Loom, 19th century

Page 17: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Difference Engine, 1823

Page 18: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

Herman Hollerith, 1890

Page 19: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

ABC, 1939

Page 20: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose

ENIAC, 1946

Page 21: Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose