CPSC 110-08: Computing on Mobile Phones
Spring 2012

Homework: Binary and Hexadecimal Numbers
Due: Monday 2/6 (before class)

CS Principles

This activity addresses the concept of abstraction. It focuses, in part, on the following learning objectives:

Introduction

As we've discussed, binary sequences are an important way to represent digital data. Our number system, which we call the decimal system, is a base-10 number system. It uses 10 digits -- 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 -- and the places in a decimal number are based on powers of 10 -- i.e., the ones place (100), tens place (101), hundreds place (102), and so on.

The binary system is a base-2 system. It uses just 2 digits -- 0 and 1 -- and the places in the number are based on the powers of two. So we have the ones place (20), the twos place (21), the fours place (22), and so on.

Because binary numbers can get very long, computer scientists use other number systems based on powers of 2 that make it easier to represent digital data. One of these is the hexadecimal system, which is a base-16 system. It has 16 digits -- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. And the places in a hexadecimal number are based on powers of 16. So we have the ones place (160), the sixteens place, (161), the 256-place (162) and so on.

In this homework you will watch three short (10 minute) videos about binary and hexadecimal numbers and learn how to convert from one to the other.

Khan Academy Videos

Watch the following three Khan Academy videos on number systems. Salman Khan has a very nice way of presenting these ideas.

Quiz Yourself

To reinforce your understanding of these concepts, try the following quizzes. If you can get ten-in-a-row correct, that's a pretty good indication that you get it.

Getting Help

The TAs are available on Sunday, Tuesday, and Thursday evenings in MCEC 136. See the syllabus for their hours.

In Class

We will go over and review this material in class.