Computer Maintenance Numbering Systems Copyright © Texas Education Agency, 2011. All rights reserved.1.

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION CONVERSION.
Advertisements

Number Systems. 2 The total number of allowable symbols in a number system is called the radix or base of the system. Decimal Numbers: radix = 10 (symbols:
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
CISCO NETWORKING ACADEMY Chabot College ELEC 74A Hexadecimal Introduction.
Converting Binary to Octal
Computer Systems 1 Fundamentals of Computing
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Binary Numbers.
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Converting binary to decimal decimal to binary
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
© Copyright 2012 by Pearson Education, Inc. All Rights Reserved. 1 Number Systems 0, 1 0, 1, 2, 3, 4, 5, 6, 7 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 0, 1, 2, 3,
Decimal Review ,00010,0001, Decimal ~ Base 10 number system 10 different numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8,
© GCSE Computing Candidates should be able to:  convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa  add two 8-bit.
Chapter 16 Binary and Hexadecimal Numbers. §16.2 thru 16.3 – Addition and Subtraction of Binary Numbers Binary = Base 2 Addition and subtraction are similar.
Binary and Hexadecimal Numbers
Number Systems.
ENGR-43_Lec-06a_Fourier_XferFcn.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Licensed Electrical.
Numbering Systems CS208.
Numbering Systems. CSCE 1062 Outline What is a Numbering System Review of decimal numbering system Binary representation range Hexadecimal numbering system.
Title NUMERIC SYSTEMS USED IN NETWORKING NUMERIC SYSTEMS USED IN NETWORKING.
The Wonders of Conversion. A number system is a system in which a number is represented. There are potential infinite number systems that can exist (there.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Binary Values and Number Systems Chapter Goals Distinguish among categories of numbers Describe positional notation Convert numbers in other bases.
Number systems, Operations, and Codes
Binary Values and Number Systems
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Positional Notation 642 in base 10 positional notation is:
Converting From decimal to Binary & Hexadecimal to Binary
Conversions Denary to Binary Method 1
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Number Systems 0, 1 0, 1, 2,
Introduction to Number System
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Hexadecimal. Overview Hexadecimal (hex) ~ base 16 number system Use 0 through 9 and... A = 10 B = 11 C = 12 D = 13 E = 14 F = 15.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Semester 1 v CCNA 1 Module 1:Introduction. Semester 1 v Connecting to the Internet.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
Hexadecimal (base 16) BY MAT D. What is hexadecimal  Hexadecimal is a number system like binary or denary that has 16 characters, the numbers 0-9 and.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
CMSC 1041 Binary / Hex Binary and Hex The number systems of Computer Science.
Hexadecimal numbers. Announcements Meeting of the Mathematics and Computing Society, Thursday 12:30pm BSC 126 Help available in Math Lab Check homework.
Conversions 1)Binary to Denary Method 1 Work out the position values of the binary bits and add those values together So above would be
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Lecturer: Santokh Singh
Appendix F Number Systems binary 0, 1 0, 1, 2, 3, 4, 5, 6, 7
Computer Maintenance Numbering Systems Trade & Industrial Education
Lec 3: Data Representation
By: Jonathan O. Cabriana
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Tools of Web Development 1: Module A: Numbering Systems
Fundamentals & Ethics of Information Systems IS 201
Numbering System TODAY AND TOMORROW 11th Edition
Digital Electronics and Microprocessors
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Binary Lesson 4 Hexadecimal and Binary Practice
Chapter Four Data Representation in Computers By Bezawit E.
Chapter 2 Number Systems.
Numeral systems (radix)
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Binary, Hexadecimal, and Base 10.
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Chapter 2 Number Systems.
Presentation transcript:

Computer Maintenance Numbering Systems Copyright © Texas Education Agency, All rights reserved.1

Enabling Objectives  Introduction to numbering systems  Base 10 (decimal)  Base 2 (binary)  Base 16 (hexadecimal)  Compare and contrast decimal and binary counting  Demonstrate conversions  Decimal to binary (2 methods)  Binary to decimal (2 methods)  Hexadecimal to Decimal 2Copyright © Texas Education Agency, All rights reserved.

Enabling Objectives (cont.)  Basic hexadecimal numbering  Converting hexadecimal to binary  Converting decimal to hexadecimal  Converting hexadecimal to decimal  Converting decimal to hexadecimal  Converting binary to hexadecimal 3Copyright © Texas Education Agency, All rights reserved.

Numbering Systems Decimal (base 10) uses 10 symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Binary (base 2) uses 2 symbols 0, 1 Hexadecimal (base 16) uses 16 symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F 4Copyright © Texas Education Agency, All rights reserved.

Numbering Systems 10^410^310^210^110^0Decimal 10,0001, ^416^316^216^116^0Decimal 65,5364, A298 2^72^62^52^42^32^22^12^0Decimal Base 10 Base 16 Base 2 Copyright © Texas Education Agency, All rights reserved.

Binary Counting DecimalBinaryDecimalBinary Copyright © Texas Education Agency, All rights reserved.

Decimal to Binary Conversion Method 1 Convert the decimal number 192 into a binary number. 192/2=96with a remainder of0 96/2=48with a remainder of0 48/2=24with a remainder of0 24/2=12with a remainder of0 12/2=6with a remainder of0 6/2=3with a remainder of0 3/2=1with a remainder of1 1/2=0with a remainder of1 Write down all the remainders, backwards, and you have the binary number Copyright © Texas Education Agency, All rights reserved.

Decimal to Binary Conversion Method 2 Convert the decimal number 192 into a binary number. First find the largest number that is a power of 2 that you can subtract from the original number. Repeat the process until there is nothing left to subtract =64128’s used =064’s used1 32’s used0 16’s used0 8’s used0 4’s used0 2’s used0 1’s used0 Write down the 0s & 1s from top to bottom, and you have the binary number Copyright © Texas Education Agency, All rights reserved.

Decimal to Binary Conversion Method 2 Convert the decimal number 213 into a binary number. First find the largest number that is a power of 2 that you can subtract from the original number. Repeat the process until there is nothing left to subtract = 85128’s used =21 64’s used1 *(32 cannot be subtracted from 21) 32’s used = 5 16’s used1 *(8 cannot be subtracted from 5) 8’s used0 5-4=1 4’s used1 *(2 cannot be subtracted from 1) 2’s used0 1-1 = 0 1’s used1 Write down the 0s & 1s from top to bottom, and you have the binary number Copyright © Texas Education Agency, All rights reserved.

Binary to Decimal Conversion Method 1 From right to left, write the values of the power of 2 above each binary number. Then add up the values where a 1 exists = 181 Copyright © Texas Education Agency, All rights reserved.

Binary to Decimal Conversion Method 2 Start from the left with the first 1 in the binary number. Write down a 1 below it. Then look at the next number to the right If it is a 0, double the previous number and write it down If it is a 1, double the previous number and add 1 to it, then write it down Continue this until you reach the last 0 or 1 in the binary number. The last number you write down is the decimal equivalent of the binary number. Binary place value Binary number1101 Conversion Copyright © Texas Education Agency, All rights reserved.

Hexadecimal to Decimal Conversion Base 16 Each number place represents a power of 16 Given the hexadecimal number 12A 1 X 256 = X 16 = 32 A X 1 = +10 (A = 10 in hex) ^416^316^216^116^0Decimal 65,5364, A298 Copyright © Texas Education Agency, All rights reserved.

Basic Hexadecimal Numbering Hexadecimal is the numbering system that is used to represent MAC addresses. It is referred to as BASE 16 because it uses 16 symbols—0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. Example—Convert hex 2F5A to decimal (2 x 4096) + ([F]15 x 256) + (5 x 16) + ([A]10 x 1) = F5A Copyright © Texas Education Agency, All rights reserved.

Basic Hexadecimal Numbering One hexadecimal character can represent any decimal number between 0 and 15. In binary, F (15 decimal) is 1111 and A (10 decimal) is It follows that 4 bits are required to represent a single hexadecimal character in binary. A MAC address is 48 bits long (6 bytes), which translates to (48/4 = ) 12 hexadecimal characters required to express a MAC address. You can check this by typing winipcfg in Windows 95/98 or ipconfig /all in Windows NT/ Copyright © Texas Education Agency, All rights reserved.

Basic Hexadecimal Numbering The smallest decimal value that can be represented by four hexadecimal characters (0000) is 0. The largest decimal value that can be represented by four hexadecimal characters (FFFF) is 65,535. It follows that the range of decimal numbers that can be represented by four hexadecimal characters (16 bits) is 0 to 65,535, a total of 65,536 or 2 16 possible values. 15Copyright © Texas Education Agency, All rights reserved.

Hexadecimal to Binary Conversion To convert a hex number to a binary number, each hex bit represents 4 binary digits. Given the hex number A 3 A is the decimal number in binary is (binary number places – 4 bits) 3 is the decimal number 3 3 in binary is (binary number places – 4 bits) hex A 3 = in binary Copyright © Texas Education Agency, All rights reserved.

Converting Decimal to Hexadecimal Convert the decimal number to hex: 24032/16=1502with a remainder of /16=93with a remainder of 14 or E 93/16=5with a remainder of 13 or D 5/16=0with a remainder of 5 By collecting all the remainders backward, you have the hex number 5DE0. 17Copyright © Texas Education Agency, All rights reserved.

Converting Hexadecimal to Decimal Convert the hex number 3F4B to a decimal (work from left to right): 3 x 16 3 =12288 F(15) x 16 2 = x 16 1 =64 B(11) x 16 0 =11 Add the products together to get = decimal equivalent 18Copyright © Texas Education Agency, All rights reserved.

Converting Hexadecimal to Decimal Convert the decimal number 2750 to hex: 2750/16=171 with a remainder of 14 or E 171/16=10 with a remainder of 11 or B 10/16=0 with a remainder of 10 or A By collecting all the remainders backward, you have the hex number ABE. 19Copyright © Texas Education Agency, All rights reserved.

Converting Binary to Hexadecimal  Converting binary to hexadecimal and hexadecimal to binary is easy because 16 is a power of 2.  Every four bits correspond to one hexadecimal digit.BINARY HEX 0000 = = = = = = A 0011 = = B 0100 = = C 0101 = = D 0110 = = E 0111 = = F 20Copyright © Texas Education Agency, All rights reserved.

Converting Binary to Hexadecimal  So if you have a binary number that looks like , you break it into two groups of four bits, which looks like this: 0101 and  When you convert these two groups to hex, they look like 5 and B (11).  So converting to hex is 5B.  To convert hex to binary, do the opposite.  Convert hex AC to binary. (Every hex character is 4 bits.)  First convert hex A (10) to 1010 binary  Then convert hex C (12) to 1100 binary.  So the conversion for hex AC is binary. 21Copyright © Texas Education Agency, All rights reserved.

Numbering Systems Summary  Three numbering systems were discussed:  Decimal (base 10)  Binary (base 2)  Hexadecimal (base 16)  Binary counting was explained  Two methods of decimal to binary conversion were shown  Two methods of binary to decimal conversion were shown 22Copyright © Texas Education Agency, All rights reserved.

Numbering Systems Summary  Basic hexadecimal numbering was discussed  Methods were shown to convert:  Hexadecimal to binary  Decimal to hexadecimal  Hexadecimal to decimal  Binary to hexadecimal 23Copyright © Texas Education Agency, All rights reserved.