introduction to computer applications cmpt-109 dr. g. antoniou

79
Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

Upload: gabriel-sparks

Post on 11-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

Introduction to Computer ApplicationsIntroduction to Computer Applications

CMPT-109 Dr. G. Antoniou

Page 2: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

2

Another Gen-Ed course !!! ... But …

• This course provides you with a foundation to do better in many other courses and be successful in tomorrow’s job market

• This course also prepares you for getting the second and third job in your career …

Page 3: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

3

CMPT-109

No Late Homework Accepted…Homework must be returned-in at the beginning of the lecture class.No Late Homework Accepted…Homework must be returned-in at the beginning of the lecture class.

Grades-

Homework (15%)

Project (10%)

Presentation (5%)

MidTerm (30%)

Final (40%)

Grades-

Homework (15%)

Project (10%)

Presentation (5%)

MidTerm (30%)

Final (40%)The midterm and final exams are based on the class Lectures and not on the web-pdf-notes. The pdf-package is the “review guide” for the exams. No other exam-review will be given. For more detailed info please refer to the official class reference-book and the internet.

The midterm and final exams are based on the class Lectures and not on the web-pdf-notes. The pdf-package is the “review guide” for the exams. No other exam-review will be given. For more detailed info please refer to the official class reference-book and the internet.

Lecture: SyllabusLab: Syllabus Office Hours: Syllabus

Lecture: SyllabusLab: Syllabus Office Hours: Syllabus

Page 4: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

4

We will learn …

Computer Hardware- Components of computer hardware

Computer Software- What computer software can do for you

Computer Communication- How do computers talk to each other?

HTML- A fun programming language; create a simple web-page

Microsoft Word- To create professional documents

Microsoft Excel- Dominating the spreadsheet market…

Microsoft Access- The answer to your database needs (?)

Microsoft PowerPoint- Create a multimedia presentation with style

Blog design: post and inter-change ideas …

Page 5: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

5

Web-based MSU e.mail account

Page 6: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

6

To access your e.mail account …

https://webmail.montclair.edu

Use only msu-mail for our communication

Page 7: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

7

CMPT-109 … notes and info…

Page 8: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

8

Textbook Readings

• UNIT-A; (pages: 1-9)

• UNIT-D; (pages: 90-99)

Page 9: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

Becoming Fluent with (Electronic) Computer SystemsBecoming Fluent with (Electronic) Computer Systems

Page 10: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

10

What is a (electronic) computer system?

Page 11: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

11

What is an electronic computer system?

• An electronic computer system is a collection of electronic and mechanical parts (the hardware)

• … that has been given a set of instructions (the software), that lets you store and manipulate information.

Page 12: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

12

Do other than electronic computers exist today or existed in the past ?

“Abacus”, Roman times

  In the ancient world a mechanical computer

(Antikythera Machine/Computer)

Napier’s Bones

The Pascaline

Page 13: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

13

Abacus

The abacus is an ancient calculating tool (2.300-2.700 B.C.) capable of performing the four basic arithmetic operations.

Page 14: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

14

Abacus

Today … Beijing, China

Page 15: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

15

Antikythera Computer (140 B.C)

Was build in ancient Greece the year 140 B.C. The Antikythera Mechanism was able to align the number of lunar months with years and display where the sun and the moon were in the zodiac. {CNN.com}

Was build in ancient Greece the year 140 B.C. The Antikythera Mechanism was able to align the number of lunar months with years and display where the sun and the moon were in the zodiac. {CNN.com}

Page 16: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

16

Napier’s Bones (1610)

Napier's bones is an abacus created by John Napier (1550 – 1617) for calculation of products and quotients of numbers.

Napier's bones is an abacus created by John Napier (1550 – 1617) for calculation of products and quotients of numbers.

Page 17: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

17

The Pascaline (1642)

Pascal invented and build the “Pascaline” to help his father, a tax collector.Pascal invented and build the “Pascaline” to help his father, a tax collector.

Page 18: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

18

Analytical Engine-1822, (Charles Babbage)

An Engine (mechanical computer) to compute mathematical tables, such as logarithmic and trigonometric functions.

An Engine (mechanical computer) to compute mathematical tables, such as logarithmic and trigonometric functions.

Page 19: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

19

Slide rule

19

Page 20: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

20

Z1- Computer (1938)

The First Freely Programmable Mechanical Computer invented by Konrad Zuse, 1910-1995 (Germany)

The First Freely Programmable Mechanical Computer invented by Konrad Zuse, 1910-1995 (Germany)

Page 21: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

21

Prof. Atanasoff-Berry (graduate student) Electronic Computer (1939-1942)

The world's first electronic-digital computer at Iowa State University. The Computer State used a binary system of arithmetic, parallel processing, separation of memory and computing functions.

The world's first electronic-digital computer at Iowa State University. The Computer State used a binary system of arithmetic, parallel processing, separation of memory and computing functions.

Page 22: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

22

The Harvard MARK-I Computer - Howard Aiken and Grace Hopper (1944)

Page 23: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

23

ENIAC (Electronic Numerical Integrator and Computer) 1944-46

• Developed by Army Ordinance to compute World War II ballistic firing tables.

• (Moore School of Electrical Engineering, University of Pennsylvania)

Page 24: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

24

ENIAC: Electronic Computer

Page 25: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

25

• Predict weather

• Run a factory

• Transportation and travel

• Money (Banks/ATM machines)

• Communications (Mobile phone, email, …)

• Play games

• Robotics

• Medicine

What can a computer do?

Page 26: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

26

• Drink coffee

• Listen and solve your problems

• Design solutions to problems

What a computer can’t do?

Page 27: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

27

Medicine … Robot (computer) surgery

Page 28: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

28

Human computer

Input: eye, nose, ear

Process: brain

Output: feet, voice

Page 29: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

29

Human made computer

Input: Keyboard, Bar code device, Monitor

Process: CPU

Output: Monitor, Printer

Instructions to run the system

and

Page 30: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

30

Human made computer

Instructions to run the system

and

Page 31: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

31

Human made “Computers” …

Page 32: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

32

A computer system has two main parts

• Hardware

• Software

Page 33: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

33

A computer system has two main parts

• Hardware; Physical equipment

• Software; Instructions that run the hardware

Page 34: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

34

Hardware

Motherboard

Page 35: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

35

A computer system has two main parts

• Hardware = Physical equipment

• Software = Instructions that run the hardware (programs @ applications)

Such as…

•Operating System (Win7, OSX, Unix, etc)

•Office 2010

•Web browsers

•iTunes

•Games

•etc…

Page 36: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

36

Computer hardware …basic componets

Page 37: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

37

CPU’s … single core

Page 38: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

38

Different types of CPU’s ?

• Yes …

• SingleCore

• MultiCore

Page 39: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

39

CPU

• The most popular are manufactured by INTEL corporation.

Page 40: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

40

Intel …. Up to today

Name Date MHz

• 8086 1978 5-10– First 16-bit Intel processor. Basis for IBM PC & DOS

• 386 1985 16-33– First 32 bit Intel processor

• Pentium 4F 2004 2800-3800– First 64-bit Intel processor, referred to as x86-64

• Core 2 2006 1060-3500– First multi-core Intel processor

• Core i7 2008 1700-3900– Four cores

Page 41: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

41

Speed of CPU’s … Hertz (Hz)

• Hertz (Hz) is a measure of the frequency (cycles per second)

• Today … typical CPU values 2-4 GHz

Note:

1 GHz = 1,000,000,000 Hz

1 MHz = 1,000,000 Hz

1 KHz = 1,000 Hz

Note:

1 GHz = 1,000,000,000 Hz

1 MHz = 1,000,000 Hz

1 KHz = 1,000 Hz

Page 42: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

42

SingleCore and MultiCore CPU’s

Page 43: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

43

Multicore CPU’s

Page 44: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

44

Processor type Frequency (GHz) Cores Cache memory (MB)

i3 1.4 - 2.6 2 3

i5 2.3 - 3.4 2-4 3-6

i7 2.5 - 3.6 2-6 4-15

Today… from “INTEL” … i7, i5

Page 45: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

45

… from “AMD” … Opteron (12 cores)

Page 46: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

46

ARM CPU for mobile devices ….

Page 47: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

47

ARM (Cortex-9)…next generation devices

Page 48: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

48

CPU’s

CPU’s are also called MicroProcessors CPU’s are also called MicroProcessors

Page 49: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

49

Next … Computer memory

Page 50: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

Computer Memory

Page 51: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

51

Computer Memory

Primary

Secondary

Page 52: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

52

Computer Memory

Primary

• RAM

Secondary

• Hard Disk

• Diskettes, CD, DVD, Tapes, Flash, …

Page 53: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

53

RAM

Rows and columns with 0’s and 1’s

Page 54: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

54

RAM or System Memory

• RAM (Random Access Memory)

Fast

Volatile (not permanent)

Limited

Relatively expensive

Page 55: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

55

RAM

• Random Access Memory (Read And Write Memory)

• When the power goes off, any information stored in the RAM is erased.

Page 56: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

56

RAM

Memory chips

Memory module

Page 57: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

57

RAM (main memory)

Page 58: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

58

How to add RAM memory

Page 59: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

59

Two types … RAM

DRAM (Dynamic RAM); Main memory

SRAM (Static RAM); Faster and more expensive than DRAM

SRAM = Cache memory

Page 60: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

60

DRAM & SRAM chips

DRAM SRAM

Page 61: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

61

RAM modules (types)

• The memory chips are packaged in memory modules that plug into expansion slots on the main system board (motherboard).

SIMMs

DIMMs

Page 62: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

62

SIMM’s & DIMM’s

SIMM = Single Inline Memory Module

(32-bit bus)

DIMM = Dual Inline Memory Module

(64-bit bus >> more data).

Page 63: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

63

Actual DIMM’s

Page 64: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

64

RAM capacities

4-32 GB 4-32 GB

• System memory (DRAM) • Cache memory (SRAM)

What is MB (MegaByte), GB (GigaByte) … ?

What is Byte? What is Byte?

2-64 MB 2-64 MB

Page 65: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

65

Byte - Bit

Page 66: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

66

Example…

• The file is 10 Bytes

• Each Byte is 8-Bits (ASCII)

• Therefore Total Bits: 10 X 8 = 80 Bits

• 1 character in our keyboard = 1 Byte

0123456789

File.txt

0123456789

Page 67: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

67

Units used for computer storage

Page 68: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

68

Kilo, Mega, Giga, Tera [SI units]

1 K (Kilo) = 1,000

1 M (Mega) = 1,000,000

1 G (Giga) = 1,000,000,000

1 T (Tera) = 1,000,000,000,000

• SI = International System of Units

Page 69: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

69

[KB, MB, GB, TB] … in computer science

1 Kibi (Kilobinary) = 2^10 = 1,024 Bytes

1 Mebi (Megabinary) = 2^20 = 1,048,576 Bytes

1 Gibi (Gigabinary) = 2^30 Bytes

1 Tebi (Terabinary) = 2^40 Bytes

• bi = binary

Page 70: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

70

For u to know …

1 GB = 1 000 000 000 Bytes

1 KB = 1 000 Bytes

1 MB = 1 000 000 Bytes

Page 71: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

71

Size << Songs- Video

• What is the memory size … 1 song ?

Size Song Capacity Video content

1 GB 250

2 GB 500 4-7 hours

8 GB 2,000 30 hours

30 GB 7, 000 100 hours

Page 72: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

72

1 song … about 4 MBytes

• 1,000,000,000/250 = 4,000,000 Bytes

• = 4 MBytes

Size Song Capacity Video content

1 GB 250

2 GB 500 4-7 hours

8 GB 2,000 30 hours

30 GB 7, 000 100 hours

Page 73: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

73

How much RAM do you have in your Computer?

Start

Settings

Control Panel

System

Page 74: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

74

How much RAM do you have in your Computer?

Page 75: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

75

How much RAM do we need?

• Need RAM to run the Windows 7

• Need RAM to run the Microsoft office

• Need RAM to run the Media Player

• …

• Need RAM to run a Graphics Program

• …

Find-out how much memory we need for each program above to run … then we add

Page 76: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

76

We need…

• RAM for Windows 7 = 128 MB

• RAM for Microsoft office = 128 MB

• RAM for Media Player = 64 MB

For this Example we need: ??? MB For this Example we need: ??? MB

Page 77: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

77

We need 320 MB of memory …

• RAM for Windows 7 = 128 MB

• RAM for Microsoft office = 128 MB

• RAM for Media Player = 64 MB

For this Example we need: 320 MB For this Example we need: 320 MB

If we have only 256MB System Memory, then what happens?If we have only 256MB System Memory, then what happens?

Page 78: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

78

Another “invisible” Memory;

Non-Physical memory … invisible to us …

Computers have limited memory (DRAM)

In order to run more than one applications ... we need MORE memory (DRAM)…

The computer (Windows OS) borrows some memory (virtual) from the hard disk (very slow) ... in order for all applications to run ...

Using Virtual-Memory … we slow down the computer

If you need to run many applications at the same time … get more physical memory (DRAM).

Page 79: Introduction to Computer Applications CMPT-109 Dr. G. Antoniou

79

Continue about Computers

• CPU (Central Processing Unit) last lecture

• Memory (RAM) last lecture

• More about Memories Next Lecture

• I/O (Input/Output) units = peripheral devices

• Computer Systems …