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

In this lab students work either individually or in pairs to write various functions dealing with binary and ternary numbers. Students must use recursion to convert between binary/ternary/balanced ternary and decimal numbers, as well as to count in binary. This lab reviews binary and ternary numbers and requires students to use recursion. It is particularly useful for students who are new to numbers in different bases and need additional practice with recursion.

Recommendations

Integrate pair programming when it is appropriate for students to collaborate on a lab, assignment, or project. The “driver” controls the mouse and the keyboard, while the “navigator” makes suggestions, points out errors, and asks questions. Partners routinely switch roles to gain the benefits of each role.

Engagement Highlights

Students have the option of working in pairs as a way of encouraging Student-Student interaction. Provides a link to an article about Thomas Fowler's ternary calculating machine to Employ Meaningful and Relevant Content.

Materials and Links

Computer Science Details

Programming Language
Python

Material Format and Licensing Information

Creative Commons License
CC BY-NC