Unit 18: Computational Thinking

Slides:



Advertisements
Similar presentations
KFUPM COE 202: Digital Logic Design Number Systems Part 3 Courtesy of Dr. Ahmad Almulhem.
Advertisements

Candidates should be able to:
Introduction to Computer Engineering by Richard E. Haskell Number Systems Module M3.1 Sections
Information Processing
Number Systems and Codes Discussion D4.1. Number Systems Counting in Binary Positional Notation Hexadecimal Numbers Negative Numbers.
Binary numbers. 1 Humans count using decimal numbers (base 10) We use 10 units: 0, 1, 2, 3, 4, 5, 6, 7, 8 and (5.
© BYU 02 NUMBERS Page 1 ECEn 224 Binary Number Systems and Codes.
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Chapter 3 Data Representation
1 Pertemuan 2 Network Math. Discussion Topics Binary presentation of data Bits and bytes Base 10 number system Base 2 number system Converting decimal.
Number Systems What is the Standard Base we
CONVERSION OF NUMBER SYSTEMS FAHEEM ANWAR MANAGER NETWORKS ACADEMY PTCL ACADEMY.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
©Contrinex JDC PPT_XF_BinHexDecASCII Encoding information J.-D. Chatelain.
Converting From decimal to Binary & Hexadecimal to Binary
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.
Chapter 2 Bits, Data Types, and Operations. 2-2 Hexadecimal Notation It is often convenient to write binary (base-2) numbers as hexadecimal (base-16)
Working with 8-bit bytes and hexadecimal
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Springfield Technical Community College Center for Business and Technology.
Introduction to Number Representation A451 GCSE Computing.
Comp 335 – File Structures Hexadecimal Dumps Interpreting File Contents.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
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.
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Base 16 (hexadecimal) Uses the decimal digits and the first letters of the alphabet to encode 4 binary bits (16=2 4 ) abcdef or ABCDEF.
WHY HEXADECIMAL?. Why bother with Hexadecimal? 1. Binary numbers are difficult for us to work with. 2. Hexadecimal can be used as “shorthand” for binary.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Some basic concepts underlying computer archi­tecture
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Number Systems and Codes
Binary Numbers and ASCII and EDCDIC
CSCI 198: Lecture 4: Data Representation
CSCI 161: Lecture 4: Data Representation
Chapter 3 Data Representation
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Denary to Binary Numbers & Binary to Denary
RFID - EN Encoding information Encoding information J.-D. Chatelain.
Lesson Objectives Aims You should be able to: Convert Denary to Binary
Data Storage Introduction to computer, 2nd semester, 2010/2011
Binary Quiz UIN: ____________________
Digital Systems: Number Systems and Codes
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Hexadecimal Conversions
Binary / Hex Binary and Hex The number systems of Computer Science.
Binary Lesson 3 Hexadecimal
Digital Electronics and Microprocessors
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Binary Lesson 4 Hexadecimal and Binary Practice
Numeral systems (radix)
Learning Intention I will learn how computers store text.
Binary Lesson 4 Hexadecimal and Binary Practice
Hexadecimal.
Binary Lesson 7 Review of Binary and Hexadecimal
Binary.
Digital Representation of Data
Presentation transcript:

Unit 18: Computational Thinking Number systems

Bits and bytes A 4 bit number looks like this: 1 bit = a binary digit A 4 bit number looks like this: 1001 How many possible different 4 bit numbers are there? Hint: work out the minimum and maximum in decimal 0000 1111

Bits and bytes A 4 bit number has 16 different possible values It has 2*2*2*2 or 2 to the power 4 combinations 2*2*2*2 = 16 A byte has 8 bits How many different possible combinations?

Bytes 2 to the power 8 2*2*2*2*2*2*2*2 = 256 Minimum = 00000000 Maximum = 11111111 Writing bytes in binary is: Tedious Error-prone

Hexadecimal to the rescue! Makes life easier Now count to 15 using a single digit 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 That was easy – just like decimal! What about 10 and up? 10 = A 14= E 11= B 15= F 12= C 16= 10 (We now need 13= D an extra place value)

Hexadecimal

Hexadecimal So instead of 4 bits we have 1 hexadecimal digit 8 bits = 2 4 bit sections Convert each to hex Now have 256 = 1 byte = 2 hex digits

Conversion to hex Start with decimal number e.g. 36 Convert to binary = 32 (2*2*2*2*2)+4(2*2) = 00100100 as binary Split into 2 4-bit sections 0010 and 0100 (written as 0010 0100) Convert each 4-bit section to hex 0010 = 2, 0100 = 4 36 decimal = 00100100 binary = 24 hex

Try it yourself Convert the following decimal numbers to binary and then to hexadecimal. 34 63 127 244 57 98 Convert the following hexadecimal numbers to binary and then to decimal CC 33 AF 1F 8E FE

What about letters then? ASCII American Standard Code for Information Interchange ITF