Course Level
CS1
Knowledge Unit
Fundamental Programming Concepts
Collection Item Type
Assignment
Synopsis

In this assignment students work either individually or in pairs to write functions that convert between different bases and compress/decompress black and white images. Students must write functions that convert between bases between 2 and 10 and that add binary numbers. They must also write a basic compression/decompression algorithm for black and white images. This assignment reviews strings and requires students to use functions that they wrote earlier. It is particularly useful for students who are new to representing numbers in different bases and need additional practice with strings and recursion.

Recommendations

Incorporate Pair Programming techniques to facilitate student reflection and analysis during program development.

Engagement Highlights

Relates CS topics to concepts from the real world (image compression) to Employ Meaningful and Relevant Content.

Engagement Practices Employed

Materials and Links

Computer Science Details

Programming Language
Python

Material Format and Licensing Information

Creative Commons License
CC BY-NC