Top Banner
Languages of Computing Alan Blackwell CU Computer Laboratory
66

Languages of Computing Alan Blackwell CU Computer Laboratory.

Dec 22, 2015

Download

Documents

Cory Sims
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: Languages of Computing Alan Blackwell CU Computer Laboratory.

Languages of Computing

Alan Blackwell

CU Computer Laboratory

Page 2: Languages of Computing Alan Blackwell CU Computer Laboratory.

Part 1

Languages for storing data

Page 3: Languages of Computing Alan Blackwell CU Computer Laboratory.

Binary digits (bits)

= 1

= 0

Page 4: Languages of Computing Alan Blackwell CU Computer Laboratory.

Bits

= 0100100

Page 5: Languages of Computing Alan Blackwell CU Computer Laboratory.

Bytes

0100000101101100 01100001 0110111000100000 01000010

Page 6: Languages of Computing Alan Blackwell CU Computer Laboratory.

Encoding text

01000001 = “A”01101100 = “l”01100001 = “a”01101110 = “n”00100000 = “ ”01000010 = “B”etc …

Page 7: Languages of Computing Alan Blackwell CU Computer Laboratory.

RAM chip

Page 8: Languages of Computing Alan Blackwell CU Computer Laboratory.

RAM chip(kilobytes (kb) = 1000’s of bytes)

Page 9: Languages of Computing Alan Blackwell CU Computer Laboratory.

RAM circuit board (c.a. 1980)

Page 10: Languages of Computing Alan Blackwell CU Computer Laboratory.

Magnetic drum storage

Page 11: Languages of Computing Alan Blackwell CU Computer Laboratory.

Magnetic drum storage

Page 12: Languages of Computing Alan Blackwell CU Computer Laboratory.

Magnetic tape storage

Page 13: Languages of Computing Alan Blackwell CU Computer Laboratory.

IBM mainframe

Page 14: Languages of Computing Alan Blackwell CU Computer Laboratory.

Cassette tape

Page 15: Languages of Computing Alan Blackwell CU Computer Laboratory.

Apple II

Page 16: Languages of Computing Alan Blackwell CU Computer Laboratory.

BBC Micro

Page 17: Languages of Computing Alan Blackwell CU Computer Laboratory.

5.25 inch floppy disk (200 kb)

Page 18: Languages of Computing Alan Blackwell CU Computer Laboratory.

IBM PC

Page 19: Languages of Computing Alan Blackwell CU Computer Laboratory.

3.5 inch floppy disk

Page 20: Languages of Computing Alan Blackwell CU Computer Laboratory.

Floppy disk drive

1.4 megabytes = 1.4 million bytes= 1,400,000 bytes= 1,400 kilobytes

Page 21: Languages of Computing Alan Blackwell CU Computer Laboratory.

Hard disk drive

Page 22: Languages of Computing Alan Blackwell CU Computer Laboratory.

Hard disk drive (gigabytes)

Page 23: Languages of Computing Alan Blackwell CU Computer Laboratory.

Hard disk drive (gigabytes)

400 gigabytes = 400 billion bytes= 400,000,000,000 bytes= 400,000,000 kilobytes= 400,000 megabytes

Page 24: Languages of Computing Alan Blackwell CU Computer Laboratory.

External hard drive (terabytes)

Page 25: Languages of Computing Alan Blackwell CU Computer Laboratory.

External hard drive (terabytes)

1 terabyte = 1 trillion bytes= 1,000,000,000,000 bytes= 1,000,000,000 kilobytes= 1,000,000 megabytes= 1,000 gigabytes

Page 26: Languages of Computing Alan Blackwell CU Computer Laboratory.

CD-ROM (megabytes)

Page 27: Languages of Computing Alan Blackwell CU Computer Laboratory.

DVD-ROM (4 gigabytes)

Page 28: Languages of Computing Alan Blackwell CU Computer Laboratory.

Flash card

Page 29: Languages of Computing Alan Blackwell CU Computer Laboratory.

SIM card (kilobytes)

Page 30: Languages of Computing Alan Blackwell CU Computer Laboratory.

USB flash drive (8 gigabytes)

Page 31: Languages of Computing Alan Blackwell CU Computer Laboratory.

Geek speak checklist

bit, byte, RAM kilobyte (kB) = 1,000 bytes megabyte (MB) = 1,000,000 bytes gigabyte (GB) = 1,000,000,000 bytes terabyte (TB) = 1,000,000,000,000

bytes ASCII

Page 32: Languages of Computing Alan Blackwell CU Computer Laboratory.

Part 2

Types of data language

Page 33: Languages of Computing Alan Blackwell CU Computer Laboratory.

Plain text

Page 34: Languages of Computing Alan Blackwell CU Computer Laboratory.

Numbers

0 = 00000000

1 = 00000001

2 = 00000010

3 = 00000010

254 = 11111110

255 = 11111111

Page 35: Languages of Computing Alan Blackwell CU Computer Laboratory.

Numbers

Page 36: Languages of Computing Alan Blackwell CU Computer Laboratory.

Encoding colour

11001000(= 200 Red)

01100100(= 100 Green)

11001000(= 200 Blue)

110010000110010011001000

Page 37: Languages of Computing Alan Blackwell CU Computer Laboratory.

Picture elements (pixels)

900 pixels(30 x 30)

Page 38: Languages of Computing Alan Blackwell CU Computer Laboratory.

Compression

36,000 pixels (180 x 200)JPEG level 12 (high quality)

File size: 40 kB

36,000 pixels (180 x 200)JPEG level 0 (low quality)

File size: 14 kB

Page 39: Languages of Computing Alan Blackwell CU Computer Laboratory.

Resolution

A 10 kPixel camera(100 x 100 greyscale)

Page 40: Languages of Computing Alan Blackwell CU Computer Laboratory.

Encoding sound

0 | 0 | 237 | 10 | 56 | 235 | 12 | 3 | 45 | …

.WAV[e] file or (compressed) MP3

Page 41: Languages of Computing Alan Blackwell CU Computer Laboratory.

Encoding programs

10100000 00000000 01000010 11101001 01001000

= MOV AX,0x0082E984H

or, “get the data at memory address 4385096”

(in the particular language of Intel microprocessors)

Page 42: Languages of Computing Alan Blackwell CU Computer Laboratory.

Central Processor Unit

Once millionsof instructionsper second(MIPS)

Now, billionsof clock ticks per second(GigaHertz, GHz)

Page 43: Languages of Computing Alan Blackwell CU Computer Laboratory.

Geek speak checklist

plain text resolution compression GIF, JPEG, MP3, WAV, MPEG ARM GigaHertz

Page 44: Languages of Computing Alan Blackwell CU Computer Laboratory.

Part 3

Collecting and presenting data

Page 45: Languages of Computing Alan Blackwell CU Computer Laboratory.

Input: Keyboard

Page 46: Languages of Computing Alan Blackwell CU Computer Laboratory.

Input: Sound card

Page 47: Languages of Computing Alan Blackwell CU Computer Laboratory.

Input: Flatbed scanner

1000 dpi (dots per inch)

Page 48: Languages of Computing Alan Blackwell CU Computer Laboratory.

Input: Digital camera

4000 x 3000 = 12 Megapixels

Page 49: Languages of Computing Alan Blackwell CU Computer Laboratory.

Input: Digital video camera

640 x 480 pixels (VGA)

Page 50: Languages of Computing Alan Blackwell CU Computer Laboratory.

Input: Webcam

352 x 288 pixels (VGA)

Page 51: Languages of Computing Alan Blackwell CU Computer Laboratory.

Output: Monitor

1024 x 768 pixels (XGA)

Page 52: Languages of Computing Alan Blackwell CU Computer Laboratory.

Output: Printer

800 dpi (dots per inch)

Page 53: Languages of Computing Alan Blackwell CU Computer Laboratory.

Output: Powered speakers

Page 54: Languages of Computing Alan Blackwell CU Computer Laboratory.

Output: Data projector (“beamer”)

800 x 600 pixels (SVGA)

Page 55: Languages of Computing Alan Blackwell CU Computer Laboratory.

Geek speak checklist

VGA, SVGA, XGA DPI

Page 56: Languages of Computing Alan Blackwell CU Computer Laboratory.

Part 4

Internal communication

Page 57: Languages of Computing Alan Blackwell CU Computer Laboratory.

Motherboard

Page 58: Languages of Computing Alan Blackwell CU Computer Laboratory.

Expansion RAM (SIMM)

Page 59: Languages of Computing Alan Blackwell CU Computer Laboratory.

Part 5

External communication

Page 60: Languages of Computing Alan Blackwell CU Computer Laboratory.

VGA connector

Page 61: Languages of Computing Alan Blackwell CU Computer Laboratory.

HDMI connector

Page 62: Languages of Computing Alan Blackwell CU Computer Laboratory.

DVI connector

Page 63: Languages of Computing Alan Blackwell CU Computer Laboratory.

VGA/DVI Adapter (“Dongle”)

Page 64: Languages of Computing Alan Blackwell CU Computer Laboratory.

RJ-11 connectors

Don’t confuse Ethernet and Phone!

Page 65: Languages of Computing Alan Blackwell CU Computer Laboratory.

USB connector

No confusion possible – all peripherals are interchangeable!

Page 66: Languages of Computing Alan Blackwell CU Computer Laboratory.

Practical exercises

HomeworkResearch into file sizesMarket research (Currys, Staples)Specify your own computer