how computers work part 3 18 february 2008. data types computer doesn’t know what the bits...
DESCRIPTION
Data Types Numbers: integers and floating point numbers (scientific notation) Why do we need floating point numbers? Text: Unicode, double byte Languages and symbols (Word insert symbol) Pictures: pixels A very fine needlepoint How to represent color? Sound: different formats InstructionsTRANSCRIPT
![Page 1: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/1.jpg)
How Computers WorkPart 318 February 2008
![Page 2: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/2.jpg)
Data Types Computer doesn’t know what the bits
represents or what format is being used Computer assumes that the instructions know
the format of the data What are the types of data?
Numbers, text, pictures, sound, instructions
![Page 3: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/3.jpg)
Data Types Numbers: integers and floating point numbers (scientific
notation) Why do we need floating point numbers?
Text: Unicode, double byte Languages and symbols (Word insert symbol)
Pictures: pixels A very fine needlepoint How to represent color?
Sound: different formats Instructions
![Page 4: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/4.jpg)
Alphanumeric Text
8-bit ASCII sample0 0101 00001 0101 00012 0101 0010
A 0100 0001B 0100 0010C 0100 0011
![Page 5: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/5.jpg)
0100100001100101
011011000110110001101111
Hello
Hello
![Page 6: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/6.jpg)
How are pictures stored?
![Page 7: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/7.jpg)
MonochromeA pixel can look BLACK,or it can look WHITE.
![Page 8: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/8.jpg)
ASCII Images Instead of pixels, use characters Web site that converts pictures
http://asciiconvert.com/ An example
![Page 9: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/9.jpg)
Or it can display various shades of grey:
000 001 010 011 100 101 110 111
0 1 2 3 4 5 6 7
For example:
![Page 10: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/10.jpg)
000 001 010 011 100 101 110 111
![Page 11: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/11.jpg)
Mixes various amounts of R G and B light to produce other colors.
Color
Or a pixel display various colors
![Page 12: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/12.jpg)
The Internet What is it?
The infrastructure that connects identified computers Links = the wires Routers = the boxes that connect them
World Wide Web Computers that contain information to be shared Servers
![Page 13: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/13.jpg)
How Do You Get to the Servers? Computers are connected through a
network Network requires protocol to work
A protocol is a set of rules The one that is used here is called IP (Internet
Protocol)
![Page 14: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/14.jpg)
How would you route a note? Assume that you each have a consecutive number (count
off) If I hand one of you a note for a set number, what do you
need to know? Which way to go – not exactly where it is Your number, the number you want to get to Algorithm? If number is
greater, pass left/back smaller, pass right/forward equal, read
![Page 15: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/15.jpg)
How Networking Works Computers need the same thing
Who identified by IP address Every machine that is connected to the network has one http://www.lawrencegoetz.com/programs/ipinfo/ Command prompt
Routers know how to get there
![Page 16: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/16.jpg)
So What Can Go Wrong in Transit? Data can be read Data can be lost Data can be changed Data can be sent to someone else
![Page 17: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/17.jpg)
How Networking Works Computers need the same thing
Who identified by IP address Every machine that is connected to the network has one http://www.lawrencegoetz.com/programs/ipinfo/ Command prompt
Routers know how to get there But IP addresses aren’t user friendly
Give names instead Domain Name Server does the mapping
![Page 18: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/18.jpg)
Introduces new opportunities People assume they know who owns the site
![Page 19: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/19.jpg)
Anatomy of a URL Protocol: server-name/file-to-display
Protocol: usually http Have you ever seen others? https?
Server-name The computer’s name
Usually begins with www Usually ends with 3 characters that define the kind of site
However, there are no rules: as long as its registered, you can get there
File-to-display Can be a whole path (just like Windows)
![Page 20: How Computers Work Part 3 18 February 2008. Data Types Computer doesn’t know what the bits represents or what format is being used Computer assumes](https://reader035.vdocuments.us/reader035/viewer/2022062311/5a4d1aec7f8b9ab05997b69c/html5/thumbnails/20.jpg)
How to Build that File Text file that says what to display
Web pages use HTML Hypertext Markup Language
Two types of information Text Instructions on how to display