CSCI N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science The Switch, Part One.

Slides:



Advertisements
Similar presentations
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Advertisements

Connecting with Computer Science, 2e
Level ISA3: Information Representation
Information Processing Session 5B Binary Arithmetic Slide
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Chapter 4.2 Binary numbers: Arithmetic
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
The Binary Number System
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Converting Binary to Octal
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Chapter 1 1 Number Systems. 2 Objectives  Understand why computers use binary (Base-2) numbering.  Understand how to convert Base-2 numbers to Base-
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
Binary Arithmetic Math For Computers.
Binary Conversions Number systems 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.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Data Representation Number Systems.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Newport Math Club Copyright © 2009 by Newport Math Club.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Numbering systems.
Positional Number Systems
Numeral Systems Subjects: Numeral System Positional systems Decimal
Numbering Systems CS208.
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
CSCI N201: Programming Concepts Copyright ©2005  Department of Computer & Information Science Essence of Computation.
Data Representation in Computer Systems. 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers.
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
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Positional Notation 642 in base 10 positional notation is:
1 Data Representation Characters, Integers and Real Numbers Binary Number System Octal Number System Hexadecimal Number System Powered by DeSiaMore.
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.
How a Computer Processes Information. Java – Numbering Systems OBJECTIVE - Introduction to Numbering Systems and their relation to Computer Problems Review.
Computer Math CPS120 Introduction to Computer Science Lecture 4.
Number Systems and Binary Math
1 2.1 Introduction A bit is the most basic unit of information in a computer. –It is a state of “on” or “off” in a digital circuit. –Sometimes these states.
Computer Science Introduction to the Number Base Unit Adapted from Slides by John Owen Computer Science Instructor, Rockport-Fulton High School, Rockport,
Introduction To Number Systems Binary System M. AL-Towaileb1.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Number Systems & Binary How to count. How do we represent numbers? Early systems: – Actual count : ||||| = 5 – Roman numers : XI = 11 Hard to do math:
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.
Dr. ClincyLecture 2 Slide 1 CS Chapter 2 (1 of 5) Dr. Clincy Professor of CS Note: Do not study chapter 2’s appendix (the topics will be covered.
Dr. Clincy Slide 1 CS Chapter 2 (Part 1 of 3) Dr. Clincy Professor of CS Ch 2 Appendix pages will not be on the exam – already covered this.
Binary & Hex Review.
Binary, Denary, Hexadecimal Conversion Binary Addition
Dr. Clincy Professor of CS
Introduction to Chapter 2
Number Systems.
COMPUTING FUNDAMENTALS
Octal & Hexadecimal Number Systems
Octal & Hexadecimal Number Systems
Tools of Web Development 1: Module A: Numbering Systems
Number System conversions
Octal & Hexadecimal Number Systems
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
Dr. Clincy Professor of CS
Octal & Hexadecimal Number Systems
Digital Electronics and Microprocessors
Chapter Four Data Representation in Computers By Bezawit E.
Number Systems Rayat Shikshan Sanstha’s
Number Systems Rayat Shikshan Sanstha’s
Binary & Hex Review.
Presentation transcript:

CSCI N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science The Switch, Part One

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Goals By the end of this unit, you should understand … Why computers use switches.Why computers use switches. Why computers encode everything using binary numbers.Why computers encode everything using binary numbers. How to convert to and from Base-2.How to convert to and from Base-2. How to convert to and from Base-8.How to convert to and from Base-8. How to convert to and from Base-16.How to convert to and from Base-16.

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Why do computers use switches? Engineers selected a binary-state (two state) switch as the fundamental computer component building block.Engineers selected a binary-state (two state) switch as the fundamental computer component building block. Why? It was simple and reliable and it supported built-in error checking.Why? It was simple and reliable and it supported built-in error checking.

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science The Switch and Architecture The innermost physical layer of a computer is a huge collection of simple, two state switches.The innermost physical layer of a computer is a huge collection of simple, two state switches. We can store any thing we want inside a computer, as long as we can figure out how to translate it into a collection of switches …We can store any thing we want inside a computer, as long as we can figure out how to translate it into a collection of switches …

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Switches and Meaning With one switch, how many messages can we convey? Two – I could let the open (“ON”) position represent the message “Yes, we’ll have class today.”, while the closed (“OFF”) position stands for “No, we will not.”With one switch, how many messages can we convey? Two – I could let the open (“ON”) position represent the message “Yes, we’ll have class today.”, while the closed (“OFF”) position stands for “No, we will not.” That’s not a lot of information, though, just two things …That’s not a lot of information, though, just two things …

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Putting Them Together What if I take two switches, put together?What if I take two switches, put together? Now, I have four things I can say:Now, I have four things I can say: –ON, ON: We’ll have class and a test. –ON, OFF: We’ll have class, but no test. –OFF, ON: We won’t have class, but we’ll have a test. –OFF, OFF: We won’t have class and we won’t have a test.

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Adding Switches Doubles Message 1 switch = 2 message1 switch = 2 message 2 switches = 4 messages2 switches = 4 messages 3 switches = 8 messages3 switches = 8 messages 4 switches = ? messages4 switches = ? messages Do you see a pattern?Do you see a pattern?

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Units of Computer Measurement The smallest unit of computer measurement is a binary digit (or more commonly, the “bit”).The smallest unit of computer measurement is a binary digit (or more commonly, the “bit”). The bit represents a single binary digit, either a 1 or a 0.The bit represents a single binary digit, either a 1 or a 0.

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Larger Units of Measurement Bit = A single binary digitBit = A single binary digit Nibble = 4 BitsNibble = 4 Bits Byte = 2 Nibbles = 8 BitsByte = 2 Nibbles = 8 Bits Word = 2 Bytes = 16 BitsWord = 2 Bytes = 16 Bits Double Word = 2 Words = 32 BitsDouble Word = 2 Words = 32 Bits Kilobyte = 1024 BytesKilobyte = 1024 Bytes Megabyte = 1024 KilobytesMegabyte = 1024 Kilobytes Gigabyte = 1025 MegabytesGigabyte = 1025 Megabytes

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Starting with Numbers Each switch can either have sufficient voltage (“ON”) or have insufficient voltage (“OFF”).Each switch can either have sufficient voltage (“ON”) or have insufficient voltage (“OFF”). Another way of stating voltage: 1 or 0Another way of stating voltage: 1 or 0 This is a common approach in science – to use abstract, notational systems to describe things.This is a common approach in science – to use abstract, notational systems to describe things. “1” “0”

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Numbering Systems To figure the answer to this question, let’s step back and look at numbering systems in general.To figure the answer to this question, let’s step back and look at numbering systems in general. Originally, human being counted with tally math systems, with a mark for each sheep they were countingOriginally, human being counted with tally math systems, with a mark for each sheep they were counting –If you had 10 sheep, you made 10 marks

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Numbering Systems Later, there were advancements in tally math, using special symbols for special numbers.Later, there were advancements in tally math, using special symbols for special numbers. –Instead of 10 marks for 10 sheep, let’s make a special mark for 10 sheep … –Instead of 10 marks for 10 sheep, let’s make a special mark for 10 sheep … But this notational system was cumbersome… you had to learn a lot of symbols, and arithmetic was difficultBut this notational system was cumbersome… you had to learn a lot of symbols, and arithmetic was difficult = = X X

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Positional Numbering Systems Wonderful advancement over tally math.Wonderful advancement over tally math. Let’s keep a few, core numbers (digits).Let’s keep a few, core numbers (digits). We can use these digits to represent REALLY big numbers if we say that the value of a number is now made up of 2 parts:We can use these digits to represent REALLY big numbers if we say that the value of a number is now made up of 2 parts: –A count value –A place value

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Place Values Consider the number 37…Consider the number 37… The 7 stands for 7 (it’s count value) ones (it’s positional value). Together, 7 times 1 is 7The 7 stands for 7 (it’s count value) ones (it’s positional value). Together, 7 times 1 is 7 3 7

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Place Values Consider the number 37…Consider the number 37… The 3 stands for 3 (it’s count value) tens (it’s positional value). Together, 3 times 10 is thirtyThe 3 stands for 3 (it’s count value) tens (it’s positional value). Together, 3 times 10 is thirty 3 7

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Place Values Consider the number 37…Consider the number 37… Total value: 7 (7 * 1, from the ones position) and thirty (3 * 10, from the 10 position) is 37!Total value: 7 (7 * 1, from the ones position) and thirty (3 * 10, from the 10 position) is 37!

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Place Values “Ones” “Tens” 7 * 13 * 10

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Base-10 (Decimal) A base refers to the number of digits (counting numbers) available in a numbering scheme.A base refers to the number of digits (counting numbers) available in a numbering scheme. The highest single digit in base is one less than the base number.The highest single digit in base is one less than the base number. In Base-10, the digits are:In Base-10, the digits are: –0, 1, 2, 3, 4, 5, 6, 7, 8, 9

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Base-10 (Decimal) What happens after 9?What happens after 9? The counter in the right column resets itself to “0” and 1 is added to the value of the next left-most column:The counter in the right column resets itself to “0” and 1 is added to the value of the next left-most column:

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Base-10 (Decimal) Interpreting a multiple digit number simply means to expand its notation, and write it out by each positional value:Interpreting a multiple digit number simply means to expand its notation, and write it out by each positional value: “Ones” 2 * 1 “Tens” 4 * 10 “Hundreds” 7 * 100

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Base-10 (Decimal) What about using some math to describe the number:What about using some math to describe the number: * * *

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Using Expanded Notation We can use our expanded notation to figure the value of a number:We can use our expanded notation to figure the value of a number: 7*10 2 = 7*100 = 700 4*10 1 = 4*10 = 40 2*10 0 = 2*1 = 2 =

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science A Note on Superscripts We’ve seen superscripts in expressions before today. In math, they are used to indicate an exponent in an expression:We’ve seen superscripts in expressions before today. In math, they are used to indicate an exponent in an expression: xyxyxyxy

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science A Note on Subscripts Let’s introduce one more notation – the subscript. It is used to indicate the base of a number (the number of digits available in a numbering system):Let’s introduce one more notation – the subscript. It is used to indicate the base of a number (the number of digits available in a numbering system): xyxyxyxy

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science A Note on Subscripts Remember our previous example?Remember our previous example? It had a subscript of “10”, meaning that the number we use the Base-10 (Decimal) numbering system to decode this number.It had a subscript of “10”, meaning that the number we use the Base-10 (Decimal) numbering system to decode this number

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Thinking in Binary (Base-2) Instead of having 10 digits, the binary (Base-2) numbering systems has 2 base digits (0 and 1).Instead of having 10 digits, the binary (Base-2) numbering systems has 2 base digits (0 and 1). –Counting in Base-2: 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010 … In binary, after the right-most placeholder reaches one, it resets to 0 and advances the next left-most placeholder.In binary, after the right-most placeholder reaches one, it resets to 0 and advances the next left-most placeholder. Our base number in binary is 2, therefore we can use exponents of 2 for placeholder notationOur base number in binary is 2, therefore we can use exponents of 2 for placeholder notation

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Binary Placeholders “Twos” “Ones” “Fours” “Eights” Let’s deconstruct :Let’s deconstruct :

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Binary Placeholders Now, let’s use exponents:Now, let’s use exponents:

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-2 to Base-10 Let’s convert Let’s convert STEP 1: Find all switches that are turned “OFF”. Cross them out and bring down the zero.STEP 1: Find all switches that are turned “OFF”. Cross them out and bring down the zero

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-2 to Base-10 STEP 2: For each placeholder turned “ON”, calculate its exponential expression.STEP 2: For each placeholder turned “ON”, calculate its exponential expression

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-2 to Base-10 STEP 3: Add the results of the exponents. The sum is the Base-10 equivalent.STEP 3: Add the results of the exponents. The sum is the Base-10 equivalent = 11 10

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting from Base-10 to Base-2 Consider How can we translate this to its Base-2 equivalent?Consider How can we translate this to its Base-2 equivalent? We’ll use successive division. Essentially, that means we’ll divide by 2 over and over and keep track of our remainders.We’ll use successive division. Essentially, that means we’ll divide by 2 over and over and keep track of our remainders. Let’s try it …Let’s try it …

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-2 STEP ONE: Draw a table with three columns. Label the last two columns quotient and remainder, respectively. QR

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-2 STEP TWO: In the first available left-most column, put the expression 23/2. Calculate the division and put the quotient and remainder in their respective columns. QR 23/2111

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-2 STEP THREE: Take the quotient of the previous expression and divide it by two. Repeat until have 0 for a quotient. QR 23/ /251 5/221 2/210 1/201

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-2 STEP FOUR: Read the REMAINDER column from the bottom to the top. The 1s and 0s in the remainder column represent the binary number. QR 23/ /251 5/221 2/210 1/201

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base = QR 23/ /251 5/221 2/210 1/201

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Checking the Results So = !So = ! Let’s check our answer by reversing the processLet’s check our answer by reversing the process = (1 * 2 4 ) + (0 * 2 3 ) + ( 1 * 2 2 ) + (1 * 2 1 ) + (1 * 2 0 ) = = (1 * 2 4 ) + (0 * 2 3 ) + ( 1 * 2 2 ) + (1 * 2 1 ) + (1 * 2 0 ) = = = 23 10

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Groups of Switches We have already seen that a single switch can’t encode much information. However, if we group switches together, we can expand our encoding ability.We have already seen that a single switch can’t encode much information. However, if we group switches together, we can expand our encoding ability. Computers often encode many types of data, graphics and large numbers for example, not in Base-2, but in Base-8 or Base-16.Computers often encode many types of data, graphics and large numbers for example, not in Base-2, but in Base-8 or Base-16.

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Introducing Octal Computer scientists are often looking for shortcuts to do things. One of the ways in which we can represent Base-2 numbers is to use their octal (Base-8) equivalents.Computer scientists are often looking for shortcuts to do things. One of the ways in which we can represent Base-2 numbers is to use their octal (Base-8) equivalents. This is especially helpful when we have to do fairly complicated tasks using large numbers.This is especially helpful when we have to do fairly complicated tasks using large numbers.

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Introducing Octal The octal numbering system includes eight base digits, 0-7.The octal numbering system includes eight base digits, 0-7. After 7, the next placeholder to the right begins with a 1: 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13...After 7, the next placeholder to the right begins with a 1: 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13...

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Octal Digits Base-2Base-8Base Click to Return to the Last Slide Viewed

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Octal Placeholders “Ones” “Eights” “Sixty-Fours” 64*28*41*1 8 2 *2 8 1 *4 8 0 *1 241Number: Placeholder Name: Value: Exponential Expression:

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-2 to Base-8 STEP ONE: Take the binary number and from right to left, group all placeholders in triplets. Add leading zeros, if necessary: Click to See Octal Digits Table

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-2 to Base-8 STEP TWO: Convert each triplet to its single-digit octal equivalent. (HINT: For each triplet, the octal conversion is the same as converting to a decimal number): =

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-8 to Base-2 Take each octal digit and convert each digit to a binary triplet. Insert leading zeros, if needed: = Click to See Octal Digits Table

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-8 to Base-10 Multiply each octal digit by the exponential expression that represents its placeholder and then add the values: = N 10 2*8 3 = 2*512 = *8 3 = 2*512 = *8 2 = 3*64 = 192 3*8 2 = 3*64 = *8 1 = 7*8 = 56 7*8 1 = 7*8 = *8 0 = 4*1 = 4 4*8 0 = 4*1 = 4 8 =

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-8 To convert Base-10 to Base-8, we’ll use successive division … Our new problem: = ? 8

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-8 STEP ONE: Draw a table with three columns. Label the last two columns quotient and remainder, respectively. QR

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-8 STEP TWO: In the first available left-most column, put the expression 4832/8. Calculate the division and put the quotient and remainder in their respective columns. QR 4832/86040

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-8 STEP THREE: Take the quotient of the previous expression and divide it by eight. Repeat until you’ve have 0 for a quotient. QR 4832/ / /893 9/811 1/801

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-8 STEP FOUR: Read the REMAINDER column from the bottom to the top. The numbers in the remainder column represent the octal number. QR 4832/ / /893 9/811 1/801

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base = QR 4832/ / /893 9/811 1/801

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Base-16 What’s tricky about Base-16?What’s tricky about Base-16? This time, we are converting to a base that has more base digits than Base-10 (Base-2 and Base-8 have fewer digits than Base-10)This time, we are converting to a base that has more base digits than Base-10 (Base-2 and Base-8 have fewer digits than Base-10) So what?So what?

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Hexadecimal Numbering There are new symbols for the Base-16 equivalents of the Base-10 numbers 10, 11, 12, 14 and 15. Examine:There are new symbols for the Base-16 equivalents of the Base-10 numbers 10, 11, 12, 14 and 15. Examine: DEC HEX DEC HEX89ABCDEF

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-16 To convert Base-10 to Base-16, we’ll again use successive division … Our new problem: = ? 16

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-16 STEP ONE: Draw a table with three columns. Label the last two columns quotient and remainder, respectively. QR

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-16 STEP TWO: In the first column, write the expression 214/16. Calculate the expression, taking care not to divide past the decimal point. Write the quotient and remainder in their respective columns. QR 214/16136

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-16 STEP THREE: Keep bringing down the quotient of the previous expression and dividing it by 16 until you have a quotient of zero. QR 214/ /16013

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-16 STEP FOUR: Convert all remainders to their hex equivalents. QR 214/ = 6 13/ = D

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Converting Base-10 to Base-16 STEP FIVE: Read the numbers in the REMAINDER column from the bottom up to get your hex equivalent. QR 214/ = 6 13/ = D = D6 16

N301: Fundamental Computer Science Concepts Copyright ©2006  Department of Computer & Information Science Questions?