Top Banner
Name: Dr. Anvik Office: Hebler 214-D Phone number: 963-2901 CWU page: www.cwu.edu/~janvik Syllabus: www.cwu.edu/~janvik/cs101
19

Computer hardware components are the physical pieces of the computer. The major hardware components of a computer are: – The central processing.

Dec 15, 2015

Download

Documents

Elissa Mowery
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Name: Dr. Anvik

Office: Hebler 214-D

Phone number: 963-2901

CWU page: www.cwu.edu/~janvik

Syllabus: www.cwu.edu/~janvik/cs101

Page 2: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

So, what is a computer?

Page 3: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: Hardware

Computer hardware components are the physical pieces of the computer.

The major hardware components of a computer are:

– The central processing unit (CPU)

– Main memory

– Secondary storage devices

– Input and Output devices

Page 4: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

1-5

Computer Systems: Hardware

Page 5: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: HardwareMain Memory Commonly known as random-access memory (RAM) RAM contains:

– currently running programs

– data used by those programs. RAM is divided into units called bytes. A byte consists of eight bits that may be either on or off. A word consists of 2 bytes.

Page 6: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

There are 28 (256) possible values for 8 bits. So what is 1011 anyhow?(1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (1 * 2^0) = 8 + 0 + 2 + 1 = 11

The first widely adopted 8-bit microprocessor was the Intel 8080, being used in many hobbyist computers of the late 1970s and early 1980s, often running the CP/M operating system; it had 8-bit data words and 16-bit addresses.

Binary computers motivate designers to making sizes powers of two. Powers of 2 are magic (mathematically speaking)! Since the "standard" character set required 7 bits anyway(ASCII defined a 7-bit character set.), it wasn't much of a stretch to add one more bit to get a power of 2.

0 = 0 1 = 1 2 = 10 3 = 11 4 = 100 5 = 101 6 = 110 7 = 111 8 = 1000 9 = 100110 = 101011 = 101112 = 110013 = 110114 = 111015 = 111116 = 1000017 = 1000118 = 1001019 = 1001120 = 10100

So, why 1 byte 8 bits?The earliest computers could only send 8 bits at a time, it was only natural to start writing code in sets of 8 bits. This came to be called a byte.

Page 7: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: HardwareSecondary Storage Devices

• Secondary storage devices are capable of storing information for longer periods of time (non-volatile).

• Common Secondary Storage devices:• Hard drive

• Floppy drive

• CD RW drive

• CD ROM

• DVD RAM drive

• Compact Flash card

Page 8: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: HardwareInput Devices

• Input is any data the computer collects from the outside world.

• That data comes from devices known as input devices.

• Common input devices:– Keyboard– Mouse– Scanner– Digital camera

Page 9: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: HardwareOutput Devices

• Output is any data the computer sends to the outside world.

• That data is displayed on devices known as output devices.

• Common output devices:– Monitors

– Printers

• Some devices such as disk drives perform input and output and are called I/O devices (input/output).

Page 10: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: Software

• Software refers to the programs that run on a computer.

• There are two classifications of software:– Operating Systems– Application Software

Page 11: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: SoftwareOperating Systems

• An operating system has two functions:– Control the system resources.– Provide the user with a means of interaction with

the computer.

• Operating systems can be either single tasking or multi-tasking.

Page 12: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: SoftwareOperating Systems

• A single tasking operating system is capable of running only one program at a time.– DOS

• A multitasking operating system is capable of running multiple programs at once.– Windows– Unix– Mac OS X

Page 13: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: SoftwareOperating Systems

• Operating systems can also be categorized as single user or multi-user.– A single user operating system allows only one user

to operate the computer at a time.– Multi-user systems allow several users to run

programs and operate the computer at once.

Page 14: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Computer Systems: SoftwareApplication Software

• Application software refers to programs that make the computer useful to the user.

• Application software provides a more specialized type of environment for the user to work in.

• Common application software:– Spreadsheets– Word processors– Accounting software– Tax software– Games

Page 15: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Programming Languages

• A program is a set of instructions a computer follows in order to perform a task.

• A programming language is a special language used to write computer programs.

• A computer program is a set of instructions that enable the computer to solve a problem or perform a task.

• Collectively, these instructions form an algorithm

Page 16: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Programming Languages

• An algorithm is a set of well defined steps to completing a task.

• The steps in an algorithm are performed sequentially.• A computer needs the algorithm to be written in

machine language.• Machine language is written using binary numbers.• The binary numbering system (base 2) only has two

digits (0 and 1).

Page 17: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Programming Languages

• The binary numbers are encoded as a machine language.

• Each CPU has its own machine language.– Motorola 68000 series processors– Intel x86 series processors– ARM processors, etc.

• Example of a machine language instruction:

1011010000000101

Page 18: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Programming Languages

• In the distant past, programmers wrote programs in machine language.

• Programmers developed higher level programming languages to make things easier.

• The first of these was assembler.

• Assembler made things easier but was also processor dependent.

Page 19: Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.

Programming Languages

• High level programming languages followed that were not processor dependent.

• Some common programming languages:

Java

BASIC C++

C

Python

COBOL

JavaScript

Ruby

PHP

C#

Visual Basic

Pascal