Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 5.12 Binary

Description

In this lesson, students learn how to convert from different number systems to decimal. They also learn more about why binary is used by computers and have an opportunity to write a code that will convert a binary number into a decimal number.


Objective

Students will be able to:

  • Convert by hand from binary, octal, and hexadecimal to decimal
  • Explain how to convert from any number system to decimal
  • Write basic computer programs to convert numbers to decimal