Coding Part 2. Weight of the Digit 3672 Thousands (10 3 )Hundreds (10 2 )Tens (10 1 )Units (1) 3000 +600+70+2 = Weights Decimal Example (3672) 10 Binary.

Slides:



Advertisements
Similar presentations
NUMBER SYSTEM. How to convert hexadecimal numbers to decimal numbers? 230 Working from right to left, MULTIPLY each position with 8 raised to the power.
Advertisements

1 3 Computing System Fundamentals 3.5 Data Representation.
Numbers. Number Conversion Convert – Binary number to decimal numbers – Octal numbers to decimal numbers – Hexadecimal to decimal numbers Convert – Decimal.
Understanding Value of Places
CISCO NETWORKING ACADEMY Chabot College ELEC 74A Hexadecimal Introduction.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Number Systems and Codes In PLC
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Revision Introductory Lesson
Number Systems.
COMPUTER NUMBER SYSTEMS & DIGITAL DEVICES By: Sohaib Rehman.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
DECIMAL BASE Based on power of 10 In the number 2,468 – from right to left -- the 8 represents the ones, the 6 represents the tens, the 4 represents the.
Supplemental Chapter Number Bases
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
NUMBER SYSTEM.
ENGINEERS FUTURE To optimize things When we type some letters or words, the computer translates them in numbers as computers can understand only numbers.
Place Value.
Number systems, Operations, and Codes
Numbering System Base Conversion. Number systems Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Binary – 0, 1 Octal – 0, 1, 2, 3, 4, 5, 6, 7 Hexadecimal system.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Converting From decimal to Binary & Hexadecimal to Binary
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
AP Computer Science A – Healdsburg High School 1 Unit 1 - Binary Numbers - Hexadecimal Numbers.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Programming Logic Controllers Number Systems and Codes - Chapter 3.
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,
Discrete Mathematics Numbering System.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
CSC 110 – Intro to Computing Lecture 3: Converting between bases & Arithmetic in other bases.
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.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
DigitValue Denotation NumericValue Denotation 2thousands1,000 0hundreds100 4tens10 8ones1 Computer Organization Basic Computer Concepts Number Systems.
1. Binary, Decimal, Hexadecimal and Octal. 2. Conversion between various number systems. Number Systems:
Decimal Numbers.
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
4,135,652 Place Value Hundred Thousands Ten Thousands Hundreds
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
Tools of Web Development 1: Module A: Numbering Systems
COUNTING IN BINARY Binary weightings 0 x x x x 8
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Binary Quiz UIN: ____________________
Comparing Numbers.
Principles of Computing – UFCFA Lecture-3
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Chapter 4 Number Systems.
4,135,652 Place Value Hundred Thousands Ten Thousands Hundreds
Binary Lesson 3 Hexadecimal
Data Hexadecimal.
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
There are 10 types of people of people in this world…
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
COUNTING IN BINARY Binary weightings 0 x x x x 8
Binary Lesson 4 Hexadecimal and Binary Practice
Remember the 10 types of people of people in this world…
Converting from Base-n to Base-10
Comparing Numbers.
Chapter 2 Number System.
Number System.
Section 6 Primitive Data Types
Presentation transcript:

Coding Part 2

Weight of the Digit 3672 Thousands (10 3 )Hundreds (10 2 )Tens (10 1 )Units (1) = Weights Decimal Example (3672) 10 Binary Example (1011) EightsFourstwosunits =

Number of Possibilities Binary (base= 2) Number of possibilities = (B) n B : Base n : # of Digits DDDD DD D DDD

Number of Possibilities Decimal (Base =10) Number of possibilities = (B) n B : Base n : # of Digits DD D DDD

Number of Possibilities Octal(Base =8) Number of possibilities = (B) n 1 Digit Number of possibilities = (8) 1 =8 2 Digits Number of possibilities = (8) 2 =64 5 Digits Number of possibilities = (8) 5 = Number of possibilities = (B) n 1 Digit Number of possibilities = (16) 1 =16 2 Digits Number of possibilities = (16) 2 =256 5 Digits Number of possibilities = (16) 5 = Hexadecimal (Base =16)

Conversion Table Binary Base =2 = (2) 1 Octal Base = 8= (2) 3 Hexadecimal Base =16 = (2) 4 Their base have number 2 as a common That’s why – 1 Octal digit equivalent to 3 Binary – 1 Hex digit equivalent to 4 Binary digits * Look at the table and notice binary columns

Binary Addition = = = =10 * Look at the table and notice binary columns

Binary Addition How do we do Decimal Addition ? =5+5 =10-B = =5+7 =12 –B = Case 1: the result is less than Base Case 2: the result equals Base Case 3: the result is higher than Base Do it for Binary