Intro to C #1: select-column

Starter code: bits-package.tar
Upload solutions via Moodle as: bits.tar

This is an individual assignment, so you should write and submit your own code. See the course information page for guidance on how and when it's OK to discuss homework with your classmates.

This assignment is an adaptation of an assignment developed for the Carnegie Mellon University’s 15-213 (Introduction to Computer Systems) course. We'll do several of these Carnegie Mellon assignments this term. They are great, but they come with a lot of infrastructure, which may take you a little while to get used to. We’ll talk about this in class.

Goals

Rubric

Your task is to implement the seven functions whose detailed descriptions you will find in bits.c. Each of the functions is known as a "puzzle" in much of this assignment's documentation.

For each function/puzzle in this assignment, your score will depend on the function computing the right result with only the specified C operators ("correctness") and doing so with no more than the specified number of operators ("operation count"). Each puzzle's correctness score is shown in the function's comment under the heading "Rating" (1, 2, or 3 points). Each puzzle's operation count score is 1 point, regardless of the Rating.

12 - correctness 7 - operation count 3 - code style (appropriate indentation, good naming, etc.)

What to do

A little advice

Have fun!

Don't by shy about experimenting and asking lots of questions.