CMSC 313 Project 4

Bit Manipulation

Assigned Wednesday Oct 19
Program Due 11:59pm, Sunday, Oct 30
Points 50 points
see project handout
Updates  

Objectives
Completing this assignment should further your proficiency in:
  1. editing, compiling, testing, using makefiles, and debugging C programs under Unix
  2. writing C code to manipulate the bit representation of integers
  3. handling signed (twos-complement) and unsigned integers
Project Policy
This project may be a team project. You may work together with one other student from either section on this project. If you wish to work alone, that's fine too. If you do work with a partner, follow the directions in the project handout and in the bits.c file. Both students on the team will receive the same grade for the project. Please be sure to revisit the course project collaboration policy to determine if/how teams may help each other.
Project Description
In this project you will solve 10 puzzles that require you to write C code to manipulate bits and integers. The project handout describes the puzzles in more detail. More specific project directions can be found in the project's README and in the C source code file bits.c both of which are contained in the project's .tar file found in the course's public directory This project is also referred to as "the datalab". Tools are provided (dlc and btest) so that you can verify the correctness of your code while working on the project. You'll be able to calculate your grade before submitting your project.
Beat the Prof Contest
Here's your chance to outwit your instructor and earn extra credit for doing so!

Once you have completed and submitted your project, you may enter your code into the "Beat the Prof" contest. See if you can complete the project puzzles using fewer operators than your instructor. Directions for entering the contest are in the project handout.