Working with Bytes

This assignment is part of a unit designed to help students understand the different types of data that are used in computing. It was used as an introductory assignment to aid in the understanding of bytes and specifically how bytes will be sent and received using microbits. When the unit is completed the students should have an in-depth understanding of ASCII, ordinal values, hexadecimal and binary representations of data.

National Standards Alignment

csta 3A-AP-13 3A-AP-14 3A-AP-15 3A-AP-21 3A-DA-09
iste ISTE-1d ISTE-3a ISTE-3b ISTE-4a ISTE-4b ISTE-4c ISTE-4d ISTE-5a ISTE-5b ISTE-6a ISTE-6b

OVERVIEW

Activity Overview:

This assignment is part of a unit designed to help students understand the different types of data that are used in computing. It was used as an introductory assignment to aid in the understanding of bytes and specifically how bytes will be sent and received using microbits. When the unit is completed the students should have an in-depth understanding of ASCII, ordinal values, hexadecimal and binary representations of data.

Meta description

  • Subject Area: Computer Science
  • Grade Level : 9-12
  • Computer Science Domains:
    • Algorithms and Programming
  • Computer Science Principles:
    • Recognizing and Defining Computational Problems
    • Developing and Using Abstractions
    • Creating Computational Artifacts
    • Testing and Refining Computational Artifacts
  • Materials:

Lesson Plan

Overview

This assignment is part of a unit designed to help students understand the different types of data that are used in computing. It was used as an introductory assignment to aid in the understanding of bytes and specifically how bytes will be sent and received using microbits. When the unit is completed the students should have an in-depth understanding of ASCII, ordinal values, hexadecimal and binary representations of data.

ASSESSMENT PRE/POST-TEST

How does Python recognize data that is to be as bytes? What are ordinal values? Is there a different decimal value for a uppercase A and a lowercase a? If so how can I find the values in Python?

OBJECTIVES

Convert data into hexadecimal format. Convert data in to binary format. Display the ordinal value of ASCII data.

CATCH/HOOK

Data can be represented in many ways. We are familiar with ASCII as it is a form that we understand. Other types of representations are Binary, Decimal, Octal, Hexadecimal. See if you can use our ASCII Conversion chart to communicate with a classmate using a form other than ASCII characters.

ACTIVITY INSTRUCTIONS

The students were prepared for this lesson with pre lessons on binary notation, Hex, and ordinal values. This lesson is designed to prepare students to deal with bytes of data and discover how it will be sent and received as bytes on a microbit. For this lesson the it is necessary for the students to have an understanding of lists abd for loops.

Supplements

Any items in this section are the property & under the license of their respective owners.

REVIEW

Have the students run their code and compare the values they generate for each string. I also encourage the students to create secret messages to send to one another.

STANDARDS

TypeListing
CS DomainsAlgorithms and Programming
CS PrinciplesRecognizing and Defining Computational Problems, Developing and Using Abstractions, Creating Computational Artifacts, Testing and Refining Computational Artifacts