09 Data Types - Engineering101...

Info iconThis preview shows pages 1–16. Sign up to view the full content.

View Full Document Right Arrow Icon
Click to edit Master subtitle style Engineering 101 Data Types
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Bonus Comic!
Background image of page 2
Quote of the Day Voltaire Judge people by their questions rather than by their answers.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Two Important Halves of  n Execution Control n Sequence n Selection n Iteration n Data Representation n How do we structure the data that we are acting  on?
Background image of page 4
Data Representation n All data inside the computer is represented by bits. n Bits can have only two values 0 or 1. n 4 bits make a  nibble n 8 bits make a  byte 11001010 10101011
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Data Encoding Bytes Meaning 11001110 10101010 11110000 10100101 11111111 11001110 11001110 Hail! to the victors valiant Hail! Hail!
Background image of page 6
How many things can you encode  n Each bit allows two possibilities. 1 bit: 0 1 (2 things) 2 bits:   00   01    10    11 (4 things) 3 bits:   000 001 010 011 100 101 110 111 (8 things) n bits: 2n   things 8 bits: 256 things
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Base 2 is a number system like  456,347
Background image of page 8
Base 2 is a number system like  456,347 100000 105 10000 104 1000 103 100 102 10 101 1 100 4 5 6 3 4 7
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Base 2 is a number system like  456,347 4 x  105  + 5 x  104  + 6 x  103  +  3 x  102  + 4 x  101  + 7 x  100   100000 105 10000 104 1000 103 100 102 10 101 1 100 4 5 6 3 4 7
Background image of page 10
Base 2 is a number system like  110001 1 x  25  + 1 x  24  + 0 x  23  +  0 x  22  + 0 x  21  + 1 x  20   32 25 16 24 8 23 4 22 2 21 1 20 1 1 0 0 0 1
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Base 2 is a number system like  110001 1 x  25  + 1 x  24  + 0 x  23  +  0 x  22  + 0 x  21  + 1 x  20   32 25 16 24 8 23 4 22 2 21 1 20 1 1 0 0 0 1
Background image of page 12
Convert the Binary Number to  01011001 128 27 64 26 32 25 16 24 8 23 4 22 2 21 1 20 1- 27 2- 89 3- 67 4- 79
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Convert the Binary Number to  01101011 128 27 64 26 32 25 16 24 8 23 4 22 2 21 1 20 1- 85 2- 101 3- 97 4- 107
Background image of page 14
Adding Binary Numbers 0 1 1 0 0 +  0 1 1 1 0
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 16
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 41

09 Data Types - Engineering101...

This preview shows document pages 1 - 16. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online