CS 241 Data Organization using C
Lab 3: Playing with bases


September 5, 2018

The purpose of lab today is to get you familiar with more code and to solidify your understanding of concepts done in lecture by hand, like our greedy subtraction algorithm to turn base 10 numbers into binary numbers.

1 Getting Started

Download the binary.c file off the course webpage under the lab subdirectory. (Remember the linux command to do this from the last labs?)

To compile the code, use the following command.

gcc -ansi -pedantic -Wall binary.c

2 Adding to the code

3 More time?

4 Turning in your program

It’s ok not to finish this assignment – get through as many test cases as you can.

Zip up your binary.c file along with your test cases into a zip file entitled yourCSUsername.zip. Then drop the zip file into the lab-03 folder in the dropbox.