Introduction to Computer Lesson 7.0

185
Introduction to Computer Lesson VII By: Vhonz Sugatan POWER School

Transcript of Introduction to Computer Lesson 7.0

Page 1: Introduction to Computer Lesson 7.0

Introduction to Computer Lesson VII

By: Vhonz SugatanPOWER School

Page 2: Introduction to Computer Lesson 7.0

Last week…

Page 3: Introduction to Computer Lesson 7.0

Number System

Page 4: Introduction to Computer Lesson 7.0

Number System

Decimal to Binary Conversion of Fraction

Page 5: Introduction to Computer Lesson 7.0

Number System

Decimal to Binary Conversion of Real Values

Page 6: Introduction to Computer Lesson 7.0

Number System

Binary to Decimal Conversion of Real Values

Page 7: Introduction to Computer Lesson 7.0

Number System

Binary Addition

Page 8: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

Page 9: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

0 - 0 =

Page 10: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

0 - 0 = 0

Page 11: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

0 - 0 = 01 - 0 =

Page 12: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

0 - 0 = 01 - 0 = 1

Page 13: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

0 - 0 = 01 - 0 = 11 - 1 =

Page 14: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

0 - 0 = 01 - 0 = 11 - 1 = 0

Page 15: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

0 - 0 = 01 - 0 = 11 - 1 = 00 - 1 =

Page 16: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

0 - 0 = 01 - 0 = 11 - 1 = 00 - 1 = 0

Page 17: Introduction to Computer Lesson 7.0

Number SystemBinary Subtraction

0 - 0 = 01 - 0 = 11 - 1 = 00 - 1 = 0 With a borrow of 1

Page 18: Introduction to Computer Lesson 7.0

Number SystemExample:

Page 19: Introduction to Computer Lesson 7.0

Number SystemExample:

1010

Page 20: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

Page 21: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

Page 22: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

Page 23: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

0

Page 24: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

0

Page 25: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

0

Page 26: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

10

Page 27: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

10

Page 28: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

10

Page 29: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

10

Page 30: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100

10

2

Page 31: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100110

2

Page 32: Introduction to Computer Lesson 7.0

Number SystemExample:

1010100110

20

Page 33: Introduction to Computer Lesson 7.0

Number SystemExample:

1010

Page 34: Introduction to Computer Lesson 7.0

Number SystemExample:

1010101

Page 35: Introduction to Computer Lesson 7.0

Number SystemExample:

1010101101

Page 36: Introduction to Computer Lesson 7.0

Number SystemExample:

1000111111

Page 37: Introduction to Computer Lesson 7.0

Number SystemExample:

1000111111

10100

Page 38: Introduction to Computer Lesson 7.0

Number SystemExample:

1000.1111.01

Page 39: Introduction to Computer Lesson 7.0

Number SystemExample:

1000.1111.01

101.10

Page 40: Introduction to Computer Lesson 7.0

Number SystemExample:

100001111

Page 41: Introduction to Computer Lesson 7.0

Number SystemExample:

100001111

1

Page 42: Introduction to Computer Lesson 7.0

Number SystemThe One’s Compliment Method

Page 43: Introduction to Computer Lesson 7.0

Number SystemThe One’s Compliment Method

11010

Page 44: Introduction to Computer Lesson 7.0

Number SystemThe One’s Compliment Method

11010 is 00101

Page 45: Introduction to Computer Lesson 7.0

Number SystemThe One’s Compliment Method

111101

Page 46: Introduction to Computer Lesson 7.0

Number SystemThe One’s Compliment Method

111101000010

Page 47: Introduction to Computer Lesson 7.0

Number SystemExample:

110011(Base2)

Page 48: Introduction to Computer Lesson 7.0

Number SystemExample:

110011(Base2)

11101(Base2)

Page 49: Introduction to Computer Lesson 7.0

Number SystemStep 1:

Page 50: Introduction to Computer Lesson 7.0

Number SystemStep 1:Get the one’s compliment of subtrahend

Page 51: Introduction to Computer Lesson 7.0

Number SystemStep 1:Get the one’s compliment of subtrahend.

The one’s compliment of 11101is 00010

Page 52: Introduction to Computer Lesson 7.0

Number SystemStep 2:

Page 53: Introduction to Computer Lesson 7.0

Number SystemStep 2:Get the binary sum of the minuend and the one’s compliment of the subtrahend.

Page 54: Introduction to Computer Lesson 7.0

Number SystemStep 2:Get the binary sum of the minuend and the one’s compliment of the subtrahend.

110011 + 00010 = 110101

Page 55: Introduction to Computer Lesson 7.0

Number SystemStep 3:

Page 56: Introduction to Computer Lesson 7.0

Number SystemStep 3:Add the and-around carry by taking the leftmost digit of the binary sum and adding it with the first digit.

Page 57: Introduction to Computer Lesson 7.0

Number SystemStep 3:

110101

Page 58: Introduction to Computer Lesson 7.0

Number SystemStep 3:

110101

Page 59: Introduction to Computer Lesson 7.0

Number SystemStep 3:

101011+

Page 60: Introduction to Computer Lesson 7.0

Number SystemStep 3:

101011+

10110

Page 61: Introduction to Computer Lesson 7.0

Number SystemStep 3:

101011+

10110

Page 62: Introduction to Computer Lesson 7.0

Number SystemBinary Multiplication

Page 63: Introduction to Computer Lesson 7.0

Number SystemBinary Multiplication

0 x 0 =

Page 64: Introduction to Computer Lesson 7.0

Number SystemBinary Multiplication

0 x 0 = 0

Page 65: Introduction to Computer Lesson 7.0

Number SystemBinary Multiplication

0 x 0 = 01 x 0 =

Page 66: Introduction to Computer Lesson 7.0

Number SystemBinary Multiplication

0 x 0 = 01 x 0 = 0

Page 67: Introduction to Computer Lesson 7.0

Number SystemBinary Multiplication

0 x 0 = 01 x 0 = 00 x 1 =

Page 68: Introduction to Computer Lesson 7.0

Number SystemBinary Multiplication

0 x 0 = 01 x 0 = 00 x 1 = 0

Page 69: Introduction to Computer Lesson 7.0

Number SystemBinary Multiplication

0 x 0 = 01 x 0 = 00 x 1 = 01 x 1 =

Page 70: Introduction to Computer Lesson 7.0

Number SystemBinary Multiplication

0 x 0 = 01 x 0 = 00 x 1 = 01 x 1 = 1

Page 71: Introduction to Computer Lesson 7.0

Number SystemExample

Page 72: Introduction to Computer Lesson 7.0

Number SystemExample 111

Page 73: Introduction to Computer Lesson 7.0

Number SystemExample 111

101x

Page 74: Introduction to Computer Lesson 7.0

Number SystemExample 111

101x111

Page 75: Introduction to Computer Lesson 7.0

Number SystemExample 111

101x111

000

Page 76: Introduction to Computer Lesson 7.0

Number SystemExample 111

101x111

000111

Page 77: Introduction to Computer Lesson 7.0

Number SystemExample 111

101x111

000111+

Page 78: Introduction to Computer Lesson 7.0

Number SystemExample 111

101x111

000111+

100011

Page 79: Introduction to Computer Lesson 7.0

Number SystemExample 101

Page 80: Introduction to Computer Lesson 7.0

Number SystemExample 101

101x

Page 81: Introduction to Computer Lesson 7.0

Number SystemExample 101

101x101

Page 82: Introduction to Computer Lesson 7.0

Number SystemExample 101

101x101

000

Page 83: Introduction to Computer Lesson 7.0

Number SystemExample 101

101x101

000101

Page 84: Introduction to Computer Lesson 7.0

Number SystemExample 101

101x101

000101+

Page 85: Introduction to Computer Lesson 7.0

Number SystemExample 101

101x101

000101+11001

Page 86: Introduction to Computer Lesson 7.0

Number SystemExample 11.00

Page 87: Introduction to Computer Lesson 7.0

Number SystemExample 11.00

10.10x

Page 88: Introduction to Computer Lesson 7.0

Number SystemExample 11.00

10.10x00 00

Page 89: Introduction to Computer Lesson 7.0

Number SystemExample 11.00

10.10x00 00

110 0

Page 90: Introduction to Computer Lesson 7.0

Number SystemExample 11.00

10.10x00 00

110 00000

Page 91: Introduction to Computer Lesson 7.0

Number SystemExample 11.00

10.10x00 00

110 00000

1100

Page 92: Introduction to Computer Lesson 7.0

Number SystemExample 11.00

10.10x00 00

110 00000

1100+

Page 93: Introduction to Computer Lesson 7.0

Number SystemExample 11.00

10.10x00 00

110 00000

1100+

1111000

Page 94: Introduction to Computer Lesson 7.0

Number SystemExample 11.00

10.10x00 00

110 00000

1100+

111.1000

Page 95: Introduction to Computer Lesson 7.0

Number SystemBinary Division

Page 96: Introduction to Computer Lesson 7.0

Number SystemBinary Division

0 / 1 =

Page 97: Introduction to Computer Lesson 7.0

Number SystemBinary Division

0 / 1 = 0

Page 98: Introduction to Computer Lesson 7.0

Number SystemBinary Division

0 / 1 = 01 / 1 =

Page 99: Introduction to Computer Lesson 7.0

Number SystemBinary Division

0 / 1 = 01 / 1 = 1

Page 100: Introduction to Computer Lesson 7.0

Number SystemBinary Division

0 / 1 = 01 / 1 = 11 / 0 =

Page 101: Introduction to Computer Lesson 7.0

Number SystemBinary Division

0 / 1 = 01 / 1 = 11 / 0 = is undefined

Page 102: Introduction to Computer Lesson 7.0

Number SystemExample

100 1100

Page 103: Introduction to Computer Lesson 7.0

Number SystemExample

100 1100

Page 104: Introduction to Computer Lesson 7.0

Number SystemExample

100 1100

Page 105: Introduction to Computer Lesson 7.0

Number SystemExample

100 1100

Page 106: Introduction to Computer Lesson 7.0

Number SystemExample

100 11001

Page 107: Introduction to Computer Lesson 7.0

Number SystemExample

100 11001

100

Page 108: Introduction to Computer Lesson 7.0

Number SystemExample

100 11001

100-

Page 109: Introduction to Computer Lesson 7.0

Number SystemExample

100 11001

100-10

Page 110: Introduction to Computer Lesson 7.0

Number SystemExample

100 11001

100-100

Page 111: Introduction to Computer Lesson 7.0

Number SystemExample

100 110011

100-100

Page 112: Introduction to Computer Lesson 7.0

Number SystemExample

100 110011

100-100100

Page 113: Introduction to Computer Lesson 7.0

Number SystemExample

100 110011

100-100100-

Page 114: Introduction to Computer Lesson 7.0

Number SystemExample

100 110011

100-100100-000

Page 115: Introduction to Computer Lesson 7.0

Number System

The Octal Number System

Page 116: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

Page 117: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionExample:

Convert 56(base 10) to its octal equivalent.

Page 118: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionExample:

Division Quotients Remainders56 / 8

Page 119: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionExample:

Division Quotients Remainders56 / 8 7

Page 120: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionExample:

Division Quotients Remainders56 / 8 7 0

Page 121: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionExample:

Division Quotients Remainders56 / 8 7 07 / 8

Page 122: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionExample:

Division Quotients Remainders56 / 8 7 07 / 8 0

Page 123: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionExample:

Division Quotients Remainders56 / 8 7 07 / 8 0 7

Page 124: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionExample:

Division Quotients Remainders56 / 8 7 07 / 8 0 7

Page 125: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionExample:

56(base 10) is equivalent to 70(base8)

Page 126: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

5687

560

Page 127: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7

Page 128: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.0

Page 129: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.00.

Page 130: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.00.8

Page 131: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.00.8

64

Page 132: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.00.8

64

Page 133: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.00.8

64

6

Page 134: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.000.8

64

60

Page 135: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.000.87

64

60

Page 136: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.000.87

64

6056

Page 137: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.000.87

64

6056

Page 138: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.000.87

64

6056

4

Page 139: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.0000.87

64

6056

40

Page 140: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.0000.875

64

6056

40

Page 141: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.0000.875

64

6056

4040

Page 142: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal Conversion

8 7.0000.875

64

6056

4040

0

Page 143: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionSeat Work

Page 144: Introduction to Computer Lesson 7.0

Number SystemDecimal to Octal ConversionSeat Work

1.) 171 base10 to base82.) 1254 base10 to base83.) 1573 base10 to base8

Page 145: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal Conversion

Page 146: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

Convert 70(base 8) to its decimal equivalent.

Page 147: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:70 base8

7 0

Page 148: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:70 base8

7 0x8 x8

Page 149: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:70 base8

7 0x8 x8+

Page 150: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:70 base8

7 0x8 x8+01

Page 151: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:70 base8

7 0x8 x8+01

0

Page 152: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:70 base8

7 0x8 x8+01

056

Page 153: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:70 base8

7 0x8 x8+01

56 + 0

Page 154: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:70 base8

7 0x8 x8+01

56 +56

0

Page 155: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

Convert 36471(base 8) to its decimal equivalent.

Page 156: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

3x8+6x8+4x8+7x8+1x801234

Page 157: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

3x8+6x8+4x8+7x8+1x801234

1

Page 158: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

3x8+6x8+4x8+7x8+1x801234

156

Page 159: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

3x8+6x8+4x8+7x8+1x801234

156256

Page 160: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

3x8+6x8+4x8+7x8+1x801234

1562563072

Page 161: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

3x8+6x8+4x8+7x8+1x801234

156256307212288

Page 162: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

3x8+6x8+4x8+7x8+1x801234

156256307212288 ++++

Page 163: Introduction to Computer Lesson 7.0

Number SystemOctal to Decimal ConversionExample:

3x8+6x8+4x8+7x8+1x801234

156256307212288 ++++

= 15673

Page 164: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary Conversion

Page 165: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionOCTAL

NUMBERBINARY

EQUIVALENT

0 000

1 001

2 010

3 011

4 100

5 101

6 110

7 111

Page 166: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

Page 167: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

Convert 13(base 8) to its binary equivalent.

Page 168: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

1 (base8) in binary is equal to 001

Page 169: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

1 (base8) in binary is equal to 001 3 (base8) in binary is equal to 011

Page 170: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

1 (base8) in binary is equal to 001 3 (base8) in binary is equal to 011 Therefore 13 (base8) is equal

to 001011 or 1011

Page 171: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

Convert 765(base 8) to its binary equivalent.

Page 172: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

7 (base8) to binary is 111

Page 173: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

7 (base8) to binary is 111 6 (base8) to binary is 110

Page 174: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

7 (base8) to binary is 111 6 (base8) to binary is 110 5 (base8) to binary is 101

Page 175: Introduction to Computer Lesson 7.0

Number SystemOctal to Binary ConversionExample:

7 (base8) to binary is 111 6 (base8) to binary is 110 5 (base8) to binary is 101

Therefore 765 (base8) is equal to 111110101

Page 176: Introduction to Computer Lesson 7.0

Number SystemBinary to Octal Conversion

Page 177: Introduction to Computer Lesson 7.0

Number SystemBinary to Octal ConversionExample:

Convert 10101010(base2) to its octal equivalent.

Page 178: Introduction to Computer Lesson 7.0

Number SystemBinary to Octal ConversionStep 1:

Arrange the binary into groups of 3.

Page 179: Introduction to Computer Lesson 7.0

Number SystemBinary to Octal ConversionStep 1:

Arrange the binary into groups of 3.

10101010

Page 180: Introduction to Computer Lesson 7.0

Number SystemBinary to Octal ConversionStep 1:

Arrange the binary into groups of 3.

10101010

Page 181: Introduction to Computer Lesson 7.0

Number SystemBinary to Octal ConversionStep 2:

For each group, convert each digit to decimal by multiplying it by its positional value.

Page 182: Introduction to Computer Lesson 7.0

Number SystemBinary to Octal ConversionStep 2:GROUP CONVERSION TO OCTAL

010 0x2+1x2+0x2 = 2101 1x2+0x2+1x2 = 510 1x2+0x2 = 2

Page 183: Introduction to Computer Lesson 7.0

Number SystemBinary to Octal ConversionStep 2:GROUP CONVERSION TO OCTAL

010 0x2+1x2+0x2 = 2101 1x2+0x2+1x2 = 510 1x2+0x2 = 2

Page 184: Introduction to Computer Lesson 7.0

Number SystemBinary to Octal Conversion

Therefore the 10101010 (base2) is equivalent to 252 (base8)

Page 185: Introduction to Computer Lesson 7.0

Number System

The Hexadecimal

Number System