66
Languages of Computing Alan Blackwell CU Computer Laboratory

Languages of Computing

  • Upload
    zasha

  • View
    18

  • Download
    0

Embed Size (px)

DESCRIPTION

Languages of Computing. Alan Blackwell CU Computer Laboratory. Part 1. Languages for storing data. Binary digits (bits). = 1. = 0. Bits. = 0100100. Bytes. 01000001 01101100 01100001 01101110 00100000 01000010. Encoding text. 01000001 = “A” 01101100 = “l” 01100001 = “a” - PowerPoint PPT Presentation

Citation preview

Page 1: Languages of Computing

Languages of Computing

Alan Blackwell

CU Computer Laboratory

Page 2: Languages of Computing

Part 1

Languages for storing data

Page 3: Languages of Computing

Binary digits (bits)

= 1

= 0

Page 4: Languages of Computing

Bits

= 0100100

Page 5: Languages of Computing

Bytes

0100000101101100 01100001 0110111000100000 01000010

Page 6: Languages of Computing

Encoding text

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

Page 7: Languages of Computing

RAM chip

Page 8: Languages of Computing

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

Page 9: Languages of Computing

RAM circuit board (c.a. 1980)

Page 10: Languages of Computing

Magnetic drum storage

Page 11: Languages of Computing

Magnetic drum storage

Page 12: Languages of Computing

Magnetic tape storage

Page 13: Languages of Computing

IBM mainframe

Page 14: Languages of Computing

Cassette tape

Page 15: Languages of Computing

Apple II

Page 16: Languages of Computing

BBC Micro

Page 17: Languages of Computing

5.25 inch floppy disk (200 kb)

Page 18: Languages of Computing

IBM PC

Page 19: Languages of Computing

3.5 inch floppy disk

Page 20: Languages of Computing

Floppy disk drive

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

Page 21: Languages of Computing

Hard disk drive

Page 22: Languages of Computing

Hard disk drive (gigabytes)

Page 23: Languages of Computing

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

External hard drive (terabytes)

Page 25: Languages of Computing

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

CD-ROM (megabytes)

Page 27: Languages of Computing

DVD-ROM (4 gigabytes)

Page 28: Languages of Computing

Flash card

Page 29: Languages of Computing

SIM card (kilobytes)

Page 30: Languages of Computing

USB flash drive (8 gigabytes)

Page 31: Languages of Computing

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

Part 2

Types of data language

Page 33: Languages of Computing

Plain text

Page 34: Languages of Computing

Numbers

0 = 00000000

1 = 00000001

2 = 00000010

3 = 00000010

254 = 11111110

255 = 11111111

Page 35: Languages of Computing

Numbers

Page 36: Languages of Computing

Encoding colour

11001000(= 200 Red)

01100100(= 100 Green)

11001000(= 200 Blue)

110010000110010011001000

Page 37: Languages of Computing

Picture elements (pixels)

900 pixels(30 x 30)

Page 38: Languages of Computing

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

Resolution

A 10 kPixel camera(100 x 100 greyscale)

Page 40: Languages of Computing

Encoding sound

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

.WAV[e] file or (compressed) MP3

Page 41: Languages of Computing

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

Central Processor Unit

Once millionsof instructionsper second(MIPS)

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

Page 43: Languages of Computing

Geek speak checklist

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

Page 44: Languages of Computing

Part 3

Collecting and presenting data

Page 45: Languages of Computing

Input: Keyboard

Page 46: Languages of Computing

Input: Sound card

Page 47: Languages of Computing

Input: Flatbed scanner

1000 dpi (dots per inch)

Page 48: Languages of Computing

Input: Digital camera

4000 x 3000 = 12 Megapixels

Page 49: Languages of Computing

Input: Digital video camera

640 x 480 pixels (VGA)

Page 50: Languages of Computing

Input: Webcam

352 x 288 pixels (VGA)

Page 51: Languages of Computing

Output: Monitor

1024 x 768 pixels (XGA)

Page 52: Languages of Computing

Output: Printer

800 dpi (dots per inch)

Page 53: Languages of Computing

Output: Powered speakers

Page 54: Languages of Computing

Output: Data projector (“beamer”)

800 x 600 pixels (SVGA)

Page 55: Languages of Computing

Geek speak checklist

VGA, SVGA, XGA DPI

Page 56: Languages of Computing

Part 4

Internal communication

Page 57: Languages of Computing

Motherboard

Page 58: Languages of Computing

Expansion RAM (SIMM)

Page 59: Languages of Computing

Part 5

External communication

Page 60: Languages of Computing

VGA connector

Page 61: Languages of Computing

HDMI connector

Page 62: Languages of Computing

DVI connector

Page 63: Languages of Computing

VGA/DVI Adapter (“Dongle”)

Page 64: Languages of Computing

RJ-11 connectors

Don’t confuse Ethernet and Phone!

Page 65: Languages of Computing

USB connector

No confusion possible – all peripherals are interchangeable!

Page 66: Languages of Computing

Practical exercises

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