Number Bases LESSON ONE By John Owen. Computer Science

Similar documents
Go forth, and Multiply!

Exercise 1: Control Functions

Content Design Structure, Scope & Sequence of Mathematics Content Addressed Within Numbers Up! Volcanic Panic

Accuplacer Arithmetic Study Guide

1. (a) (i) 0.049, 0.39, 0.4, 0.409, B1 for correct order. (b) B1 for (a) B1 for (b) B1 for 0.08.

a fraction rock star in no time! This is a free calculator for adding, subtracting, multiplying, and dividing two fractions and/or mixed numbers.

6th Grade Quarter One Assessment Guide

Section 2C Formulas with Dividing Decimals

Fun with Folding. led by Thomas Clark. October 7, Take a strip of paper, fold it in half, and make a good crease at the midpoint position.

Decimals Worksheets. The decimal point separates the whole numbers from the fractional part of a number.

MATHCOUNTS. Raytheon National Competition Sprint Round Problems 1 30 DO NOT BEGIN UNTIL YOU ARE INSTRUCTED TO DO SO. Name.

MJB-3 Mask Aligner Property of TAU MNCF August 2012

CT PET-2018 Part - B Phd COMPUTER APPLICATION Sample Question Paper

Adding Whole Numbers and Money Subtracting Whole Numbers and Money Fact Families, Part 1

Student Outcomes. Lesson Notes. Classwork. Discussion (20 minutes)

The Bruins I.C.E. School Math 1 st and 2 nd Grade Curriculum Materials. Lesson 3: Comparing Numbers Using <,> and = Symbols

APPROVED FACILITY SCHOOLS CURRICULUM DOCUMENT SUBJECT: Mathematics GRADE: 6. TIMELINE: Quarter 1. Student Friendly Learning Objective

Understanding Place Value : Maths : Year 3 : Autumn Term

PART 3 MODULE 6 GEOMETRY: UNITS OF GEOMETRIC MEASURE

Reference Primary School Curriculum (1999) Physical Education, page 42. Physical Education Teacher Guidelines, page 80.

Pace and Compass. Teacher Instructions. Overview: Objectives: Materials:

REASONS FOR THE DEVELOPMENT

Levers. Simple Machines: Lever 1

Timers, Interrupts, and Square Wave Generation. Ryan Krauss. Southern Illinois University Edwardsville. October 24, 2007

Indiana Academic 22 nd Annual M.A.T.H. Bowl. Invitational January 22 Feb. 3, Begin Practice Round

Indiana Academic 22 nd Annual M.A.T.H. Bowl

Homework 7, Due March

Step Revival. Establish a basic foot pattern (foundation) or base. This is what you build on.

Edexcel GCSE. Mathematics A 1387 Paper 5523/03. November Mark Scheme. Mathematics A 1387

- 2 - Companion Web Site. Back Cover. Synopsis

Applying Rational Number Operations

4th Grade Quarter Two Assessment Guide

Mastering the Mechanical E6B in 20 minutes!

SAVP Reel Conversions CS Technical Product Support November 24, 2008 Revision A - 3/23/2011: Added part numbers for 3-Reel+Bonus conversions.

Add this important safety precaution to your normal laboratory procedures:

Name. Procedures for adding feet and inches

APAT.01. The accurate skill test for pool players! LEVEL 1. Recommended by. Translated by Josh Curry (USA)

1.862 x x 10. The 'Estimation' Game. April 03, SB Multiplying and Dividing Decimals.notebook. MINDS ON (Elicit & Engage)

Welcome to Flogas. Metered Estates. You would never know you were off the grid. Metered Estates Welcome Pack.indd 1 18/01/ :48

to : entire team - warmup exercises (jumping jacks, leg stretches, arm circles, etc.) ( 10 minutes )

4. Please Do Break the Crystal

(a) Monday (b) Wednesday (c) Thursday (d) Friday (e) Saturday

Grade 5: Number Sense - Fractions & Decimals

BODY LESSON PLAN Beginner Level

New Bedford Fishing Heritage Center

Lesson Two. Basic Braid Structure. Odd parts

Jeremy Gregory held the 3,000 yard swim record for 13 year-old males in He swam 3,000 yards in 30 minutes.

6.RP Speed Conversions

GOLT! RED LIGHT DISTRICT

Math Released Item Grade 4 PBA Item #17 Number of Baskets VF565302

Handicap Differential = (Adjusted Gross Score - USGA Course Rating) x 113 / USGA Slope Rating

NCERT solution Decimals-2

A i r c r a f t E l e c t r i c a l S y s t e m s ( 1 2 B )

Year. Small Steps Guidance and Examples. Block 4 Converting Units. Released April 2018

UNITY 2. Uni-DAAMS Manual. Version 1.3 (Changes to Section 1.1) March 2010

11-1 Solving Two-Step Equations. Warm Up Problem of the Day Lesson Presentation Lesson Quizzes

Bay Area Scientists in Schools Presentation Plan

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR NPTEL ONLINE CERTIFICATION COURSE. On Industrial Automation and Control

Pneumatic turret stop with 6, 8 and 12 stop positions for automation

Teambuilding Activities

Rules for the Mental Calculation World Cup 2018

DUTCH5 USER GUIDE February 2013

March Madness Basketball Tournament

Physical Education Grade 9

Valley View Copy Shop: POLICIES & PROCEDURES

Combining Unlike Integers

Basic Pneumatics. Module 8: Pressure control valves. Academic Services PREPARED BY. April 2012

California Pedestrian and Bicycle Safety Curriculum

The triple threat SHOOTING

NCSS Statistical Software

5th Grade Decimal Concepts

5th Grade. Slide 1 / 192. Slide 2 / 192. Slide 3 / 192. Decimal Concepts. Table of Contents

Opposite Day (Jan. 25) Meeting (Inverse Operations)

Instruction Manual. Slug Out Knockout Driver KOMD1 / KOM540A / KOM520A

QUEST TRAINING PLAN 12-WEEK TRAINING PLAN EXPERT ROUTE 55-80K

Practice Task: Trash Can Basketball

1. Study the performance of a binary distillation column operated in batch mode.

Laboratory Activity Measurement and Density. Average deviation = Sum of absolute values of all deviations Number of trials

Lesson 3 Part 1 of 2. Demonstrating and Describing the Forehand Drive Components. Purpose: National Tennis Academy

DECIMALS. Chapter INTRODUCTION

Section 1.6 Division Review:

The NXT Generation. A complete learning solution

S w i m E n g l a n d L e a r n t o S w i m P r o g r a m m e. D e c e m b e r

LEARNING OBJECTIVES. Overview of Lesson. guided practice Teacher: anticipates, monitors, selects, sequences, and connects student work

Rockingham SCALEXTRIC Club

News English.com Ready-to-use ESL/EFL Lessons by Sean Banville

GRADE LEVEL(S): Grade 4, Grade 5

Suitable for anyone who is required to maintain industrial pneumatic systems. No prior knowledge of pneumatic or electrical principles is necessary.

TECHNICAL DATA ZTR Model 312

Lesson 2 Pre-Visit Batting Average Ups and Downs

Copyright 2016 l l All Rights Reserved.

Basic Pneumatics. Module 7: Time delay valve and sequence control systems. Academic Services PREPARED BY. January 2013

HW #5: Digital Logic and Flip Flops

Experimental Design Unit. Grade 10 Science Ms. Hayduk

Laboratory 2(a): Interfacing WiiMote. Authors: Jeff C. Jensen (National Instruments) Trung N. Tran (National Instruments)

l l All Rights Reserved

Development Program 4-7 years

TB132. Gas Conversion Kits for NV & NVS Heaters. Issue 1.0 May Applies to models: NV & NVS

ECE 697B (667) Spring 2003

Introduction to Scientific Notation & Significant Figures. Packet #6

Transcription:

Number Bases LESSON ONE By John Owen Computer Science

Objective In this lesson you ll learn about different Number Bases, specifically about those used by the computer Those include: Base Two binary Base Eight octal Base Sixteen hexadecimal 2

Base Ten First let s talk about good ole base ten, the Decimal number system which humans use and you have been working with for centuries. It s called base ten because? Come on, you know this right? 3

Base Ten If you said, because it has ten counting digits, 0,1,2,3,4,5,6,7,8, and 9, you are right! To count in base ten, you go from 0 to 9, then do combinations of two digits starting with 10 all the way to 99. 4

Base Ten After 99 comes three-digit combinations from 100 to 999, etc. This combination system is true for any base you use. The only difference is how many digits you have before you go to the next combination 5

Base Two To count in base two, which only has 0 and 1 as counting digits, you count 0,1, then switch to two digit combinations, 10,11, then to three digit combos, 100, 101,110,111, then four digit, 1000,,,, 1111 6

Base Three To count in base three, which has 0, 1, and 2 as counting digits, you count 0,1,2, then switch to two digit combinations, 10,11, 12, 20, 21, 22, then to three digit combos, 100, 101,102, 110,111, 112, etc 7

Base Eight Jumping to base eight, what are the counting digits? Can you count correctly, switching to two-digit combinations, then three-digit combos correctly? 8

Base Eight Here is the base eight counting sequence 0,1,2,3,4,5,6,7,10,11,12,13, 77 100,101,102,103,104,105,106,107 110,111, etc. 9

Base Sixteen Now for one that s a bit strange. Base Sixteen, also known as hexadecimal, was especially created by computer scientists to help in low-level programming, like machine language and assembly language. 10

Base Sixteen To count in base sixteen, you need 16 counting digits. To get sixteen counting digits, you use 0-9, but you need six more so it was decided to use A,B,C,D,E, and F. 11

Base Sixteen The symbol A represents the value 10, B is 11, C is 12, D is 13, E is 14, and F is 15. Here s the single digit sequence for base sixteen: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F 12

Base Sixteen Then the two-digit combos: 10,11,12, 19,1A,1B,1C,1D,1E,1F,20,21,22, 2D,2E,2F,30,31, FF Get the picture? 13

Base conversion To convert from base ten to another base, such as base two, eight, or sixteen, is an important skill for computer scientists and programmers. The next section shows how to do this. 14

Base Ten to Base Two Let s take the value 27 and convert it into base 2. Here s the process: Divide 27 by 2 The answer is 13, remainder 1 Divide 13 by 2 Answer is 6, remainder 1 15

Base Ten to Base Two Continue until the answer is 1. 6 divided by 2 = 3, remainder 0 3 divided by 2 = 1, remainder 1 Now take the last answer, 1, and all of the remainders in reverse order, and put them together 11011 27 base 10 = 11011 base two 16

Here s an easy way to do it on paper Base Ten to Base Two 27 divided by 2 = 13, R 1 17

Base Ten to Base Two 13 / 2 = 6, R 1 18

Base Ten to Base Two 6 / 2 = 3, R 0 19

Base Ten to Base Two 3 / 2 = 1, R 1 20

Stop when the answer is less than the divisor, and write the answer from the bottom to the top. Base Ten to Base Two 21

Now try a few yourself (see last slide for answers): 1. 16 10 = 2 2. 47 10 = 2 3. 145 10 = 2 4. 31 10 = 2 5. 32 10 = 2 Exercises 22

Base Ten to Base Eight Let s again take the value 27 and convert it into base 8. Same process: Divide 27 by 8 The answer is 3, remainder 3 Stop! You can t divide anymore because the answer is less than 8 23

Base Ten to Base Eight The last answer was 3, and the only remainder was 3, so the base eight value is 33, base 8. 24

Base Ten to Base Eight Use the same method on paper 27 divided by 8 = 3, R 3 27, base 10 = 33, base 8 25

Now try the same values for base eight. 6. 16 10 = 8 7. 47 10 = 8 8. 145 10 = 8 9. 31 10 = 8 10.32 10 = 8 Exercises 26

Base Ten to Base Sixteen Finally we ll convert 27 into base 16. Divide 27 by 16 The answer is 1, remainder 11 Stop! You can t divide anymore because the answer is less than 16 27

Base Ten to Base Sixteen The last answer was 1, and the only remainder was 11, which in base 16 is the letter B, so the base sixteen value is 1B, base 16. 28

Base Ten to Base Sixteen Again, the same method on paper 27 divided by 16 = 1, R 11 or B 27, base 10 = 1B, base 16 29

And now try base sixteen! Exercises 11.16 10 = 16 12.47 10 = 16 13.145 10 = 16 14.31 10 = 16 15.32 10 = 16 30

Conclusion Now you should know how to count in different bases how to convert from Base ten to base 2 Base ten to base 8 Base ten to base 16 31

Here are the answers to the exercises, in jumbled order 10 1F 20 20 2F 37 40 57 91 221 10000 11111 101111 100000 10010001 32