CS 311 Fall 2009  >  Assignment 1

CS 311 Fall 2009
Assignment 1

Assignment 1 is due at 5 p.m. Thursday, September 17. It is worth 25 points.

Procedures

This assignment is to be done individually.

E-mail answers to the exercises below to ffggc@uaf.edu, using the subjectDA1”.

Exercises (25 pts total)

Exercise A — “Birthday” Class

Purpose

In this exercise, you will write a simple class of the sort that might have been done as an exercise in operator overloading in CS 202. However, a number of the concepts covered so far in CS 311 will need to be applied, including documentation comments based on the idea of an operation contract. Further, your code will need to work with a thorough test program. Most importantly, quality standards will be quite high.

Instructions

This assignment is to be done individually.

Implement a C++ class that holds information about a someone’s birthday: their name, and the date of the birthday. Be sure to follow the coding standards. You do not need to follow the standards in part 3 (“Additional Standards”); these come later.

Test Program

I have written a test program: birthday_test.cpp. If you compile and run your package with this program (unmodified!), then it will test whether your package works properly.

Do not turn in birthday_test.cpp.

Note: The test program does not check the following, but you still need to do them correctly.

Thoughts


CS 311 Fall 2009: Assignment 1 / Updated: 11 Sep 2009 / Glenn G. Chappell / ffggc@uaf.edu Valid HTML 4.01!