{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

09 Data Types

# 09 Data Types - Engineering101 DataTypes BonusComic...

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

Click to edit Master subtitle style Engineering 101 Data Types

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

View Full Document
Bonus Comic!
Quote of the Day Voltaire Judge people by their questions rather than by their answers.

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

View Full Document
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?
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

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

View Full Document
Data Encoding Bytes Meaning 11001110 10101010 11110000 10100101 11111111 11001110 11001110 Hail! to the victors valiant Hail! Hail!
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

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

View Full Document
Base 2 is a number system like  456,347
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

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

View Full Document
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
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

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

View Full Document
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
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

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

View Full Document
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
Adding Binary Numbers 0 1 1 0 0 +  0 1 1 1 0

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 41

09 Data Types - Engineering101 DataTypes BonusComic...

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

View Full Document
Ask a homework question - tutors are online