an introduction to hardware, software, and the internet 9/21/2015 1-1

38
An Introduction to Hardware, Software, and the Internet 03/17/22 1-1

Upload: lewis-lynch

Post on 29-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

An Introduction to Hardware, Software, and the Internet

04/19/23

1-1

Page 2: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-2

Objectives:• Get an overview of the main hardware

components and terms: CPU, memory, peripheral devices

• Learn about software: operating system and application software

• Get an idea of how information is stored in computer memory

• Learn basic facts about the Internet

04/19/23

Page 3: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-3

Hardware

• The CPU (Central Processing Unit) is made of millions of semiconductor devices, called transistors, etched into a silicon chip.

• Transistors are combined to form logical devices called gates.

• All digital electronics is basically made up of gates.

04/19/23

Page 4: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-4

A

B A AND B A OR B

A

B A NOT A

A B A AND B

T T T T F F F T F F F F

A B A OR B

T T T T F T F T T F F F

A NOT A

T F F T

Gates

AND gate OR gate NOT gate

04/19/23

Page 5: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-5

Example: XOR Circuit

A

B

A XOR B

A B A XOR B

T T T F F T F F

OR

(NOT A) AND B

04/19/23

Page 6: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-6

RAM, CPU, Bus

CPUMemory (RAM)

Data bus

Address bus

Registers

Memory (ROM)

04/19/23

Page 7: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-7

CPU

RAM (SIMMs)

Extension slots

ROM

Motherboard

04/19/23

Page 8: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-8

Hardware Terms

• CPU — Central Processing Unit

• RAM — Random-Access Memory “random-access” means the CPU can read directly

from and write to any memory location holds both data and CPU instructions

• ROM — Read-Only Memory holds initialization and hardware diagnostic

programs

• Peripheral devices (secondary storage, input/output)

04/19/23

Page 9: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-9

CPU

• In personal computers, the CPU is a microprocessor, contained on one chip.

• The CPU speed is measured in GHz (gigahertz, billions of clock cycles per second) or, in older computers, in MHz (megahertz, millions of cycles).

• A CPU instruction takes one or several clock cycles.

Heinrich Rudolf Hertz

04/19/23

Page 10: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-10

RAM

• 1 KB (kilobyte) = 1024 bytes

• 1 MB (megabyte) = 1024 · 1024 bytes

• 1 GB (gigabyte) = 1024 · 1024 · 1024 bytes

• 1 TB (terabyte) = 1024 gigabyes

• 1 PB (petabyte) = 1024 terabyes

0 0 1 0 1 1 0 1

bit 0bit 7

220 106, a million

230 109, a billion

210

1 byte = 8 bits

04/19/23

Page 11: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-11

Secondary Storage

Hard disk:100 - 1000 GB

CD-ROM: 700 MB

A file is asoftware concept

Flash drive:1 - 8 GB

04/19/23

Page 12: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-12

I/O Devices

• Monitor and video adapter

• Keyboard, mouse or touch pad

• Sound card, speakers, microphone

• Internet adapter, wi-fi (wireless) adapter

• D/A (digital-to-analog) and A/D (analog-to-digital) converters

• Scanners, digital cameras, printers

04/19/23

Page 13: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-13

Software Layers

Device drivers

Operating system

Applications

BIOS, firmware

04/19/23

Page 14: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-14

Software Terms

• Operating system a program that maintains the file system,

dispatches applications, and provides other system-level services

• Console application a program with simple text user interface

• GUI — Graphical User Interface graphics, menus, buttons, icons, etc.

• OOP — Object-Oriented Programming

04/19/23

Page 15: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-15

Software Engineers are Able To:

• Absorb and use emerging technical information

• Create sound software system architectures

• Understand and devise effective algorithms

• Be proficient with the syntax and style of programming languages

• Diagnose and correct programming errors

Continued...

04/19/23

Page 16: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-16

Software Engineers are Able To:

• Use software development tools and documentation

• Find and utilize reusable software components

• Design and implement friendly user interfaces

• Uphold the highest standards of professional ethics

04/19/23

Page 17: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-17

• Integers are represented in binary (base 2)

• Java uses 4 bytes for an integer (int data type)

Numbers In Memory

000000000100000001200000010300000011......25511111111

04/19/23

Page 18: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

04/19/231-18

Page 19: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-19

• For signed numbers, the most significant bit indicates the sign:

• Negative numbers are represented in two’s-complement form

00000000 00000000 00000000 00010001

Numbers In Memory (cont’d)

Sign bit 116

17

+

111111111 11111111 11111111 11101110

Sign bit

-17

17 + (-17) = 232 = 004/19/23

Page 20: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-20

Numbers in Memory (cont’d)

• Real numbers are represented as floating-point numbers (similar to scientific notation) with a sign, binary mantissa (fractional part), and binary exponent.

• Java uses 8 bytes (64 bits) for a “double” (that is, double-precision) floating-point number.

double’s range is from -1.8 10308 to 1.8 10308

(but precision is only 14 significant digits)

04/19/23

Page 21: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-21

Characters

• Unicode associates characters with numbers (2 bytes represent a character).

• ASCII (American Standard Code for Information Interchange) is a subset comprising the first 128 codes of Unicode: <space> 32 ‘A’ - ‘Z’ 65 - 90 ‘0’ - ‘9’ 48 - 57 ‘a’ - ‘z’ 97 - 122

• The first 32 codes are control codes (Carriage Return, Newline, Tab, etc.).

04/19/23

Page 22: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-22

Memory Addresses in a Computer

• While a program is running, data is temporarily stored in the RAM of a computer, or written to virtual memory (the page file)

• Memory addresses are typically referenced

in hexidecimal, which is a number systemin base 16, 0-9 A-F

04/19/23

Page 23: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

04/19/231-23

Page 24: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-24

The Internet

• A network of interconnected computers that share common communication protocols, TCP/IP

• TCP: Transmission Control Protocol

• IP: Internet Protocol

04/19/23

Page 25: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-25

The Internet Layers

Internetworking: routing and forwarding data (IP)

Transport: delivering data reliably and securely (TCP)

Applications: telnet, www, e-mail, IM, FTP, Voice

Network technology (switches, adapters, routers)

04/19/23

Page 26: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-26

The Internet Terms

• Browser provides convenient way to download and display

information from the Internet

• Search engine indexes and helps find the Internet documents that

contain specified keywords and phrases

• Portal a large popular web site that has a collection of

links arranged by category

04/19/23

Page 27: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-27

The Internet Terms (cont’d)

• Host a computer connected to a network

• Server a computer on a network that provides a particular

service (e.g., e-mail server)

• URL Uniform Resource Locator, an address of a

document or a resource on the Internet

04/19/23

Page 28: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-28

The Internet Terms (cont’d)

• Host a computer connected to a network

• Server a computer on a network that provides a particular

service (e.g., e-mail server)

• URL Uniform Resource Locator, an address of a

document or a resource on the Internet

04/19/23

Page 29: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-29

Java Programming Language:

• Java was developed in the early 1990’s byJames Gosling of Sun Microsystems

• Popular because Java programs could easily be delivered over the internet.

• Java Virtual Machine “Write once, run anywhere.”

04/19/23

Page 30: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-30

Review:

Describe the outputs of the following circuits:

A

B A AND B A OR B

A

B A NOT A

A B A AND B

T T T F F T F F

A B A OR B

T T T F F T F F

A NOT A

T F

Page 31: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-31

Review:

What are CPU, RAM, and ROM?

Page 32: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-32

Review (cont’d): :

Name six I/O devices.

Page 33: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-33

Review (cont’d):

Is a device driver a hardware or a software entity?

04/19/23

Page 34: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-34

Review (cont’d):

Describe the main difference between a console and a GUI application.

04/19/23

Page 35: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-35

Review (cont’d):

Is a file a hardware or a software concept?

04/19/23

Page 36: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-36

Review (cont’d):

What is the 8-bit binary representation for 604?

What is the hexidecimal representation for 604?

04/19/23

Page 37: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-37

Review (cont’d):

In Java, how many bytes are used to represent an integer (type int)?

In Java, how many bytes are used to represent a floating point number (type double)?

04/19/23

4

8

Page 38: An Introduction to Hardware, Software, and the Internet 9/21/2015 1-1

1-38

Review (cont’d):

What does TCP/IP stand for?

04/19/23

Transmission Control ProtocolInternet Protocol