how computer represent data number system manner of counting several different number systems...

Post on 13-Dec-2015

224 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

How Computer Represent Data Number system

Manner of Counting Several different number systems

exist

To Computer everything is a number Alphabets, numbers, punctuation

marks, sound, pictures, computer instructions

For example “Here are some words.” 1

Decimal Numbers Used by humans to count Latin word deci mean 10 Also called Base 10 Have 10 distinct digits

0 1 2 3 4 5 6 7 8 9 10 is a two-digit number Digits combine to make larger numbers

2

Binary Number System

Switch has two states Off represents 0, On is 1

Latin bi means 2 Used by computers to count Two distinct digits, 0 and 1

0 and 1 combine to make numbers represent a quantity >1 it uses two

(or more) digits Pattern repeats indefinitely

3

Data RepresentationA computer circuit represents the 0 or the 1 electronically by the presence or absence of an electrical charge

4

Number Conversion

Decimal to Binary and Binary to DecimalDecimal to Octal and Octal to DecimalDecimal to Hexadecimal and Hexadecimal to

DecimalBinary to HexadecimalOctal to HexadecimalHexadecimal to Binary and Octal

5

Decimal To Binary

1

6

Decimal To Binary

(151)10 = (10010111)2

(113)10 = 11100012

7

Binary to Decimal

8

Binary to Decimal

9

Binary to Decimal

10

111001111012 = 185310

110110102 = 21810

Exercise Decimal to Binary

11

Decimal to Octal 432110 = 103418

12

Octal to Decimal

13

Octal to Decimal

Exercise Decimal to Octal

15

Octal to Decimal/Decimal to Octal

7438 = 48310

265258 = 1160510

185310 = 34758

Binary to Hexadecimal

17

Hexadecimal to Binary

18

Hexadecimal to Decimal

Decimal to Hexadecimal

Decimal to Hexadecimal

Binary to Hexadecimal

22

Hexadecimal to Binary and Octal

23

Octal to Hexadecimal

24

Binary to Hexadecimal

(10110101010101)2

(1100010010)2

25

Octal to Hexadecimal

(344)8

(1422)8

26

Complement of a Number

Complement of a Decimal Number

Complement of a Octal Number

Complement of a Binary Number

Logic Gates

AND Gate: Block Diagram and Truth Table

OR Gate: Block Diagram and Truth Table

NOT Gate: Block Diagram and Truth Table

NAND Gate: Block Diagram and Truth Table

NOR Gate: Block Diagram and Truth Table

XOR Gate: Block Diagram and Truth Table

Number System - Assignment

Decimal Binary Octal Hexadecimal

(786)10

(555)10

(228)10

(10110011)2

(111100011)2

(111110101100)2

(10341)8

(3475)8

(22466)8

(2D55)16

(BEEF)1638

top related