CPS 6.3,6.4, Test Booster, Fall 2000

By performing the tasks outlined below you can earn up to the lesser of (1) 12 points and (2) half the number of points you scored below 72. These points will be added to your test score. Notice that there is no way to get above 72 on this. If you got close to 72 on the exam, this may not be worth your time.

This is due in one week: Wednesday, October 25, by 11pm. There is no provision for late submissions.

Honor Code

For all practical purposes, this is a take-home exam. You may not consult with anyone else about this, but you may send email to the instructor or TAs for clarifications. However, you may consult your text and solutions to sample tests on the course web page.

Format

All of your work should end up in files named booster.txt and names.cpp that you can submit as per the instructions at the end.

Part 1 (50%).

Excluding Problems 1. and 2., take the problem you lost the most points on and pretend you are trying to explain to someone else what is wrong with it. Take each line or small group of lines and explain what problems are caused by it. Lines that are correct should be labeled as such. Make a real effort to produce something could help someone else learn from the mistakes in the program. (If problems are tied for most points lost, pick the more interesting one. E.g., real errors vs. a number of typos.) Part 1 should be contained in the file booster.txt.

Part 2 (50%).

Write up and fully document Problem 3. Create a file called names.cpp . Write a main program that tests and demonstrates the use of the three functions required in the test. Again, assume this is to be used for teaching. Put in enough comments to fully explain your code. This program should compile and run correctly. There will be little or not credit for non-compiling programs or programs that run incorrectly. Your program design must match the organization required by the test.

Note that you may assume a name has at least two parts (first and last name). That should be added to the preconditions of the related functions. There is no upper limit on the number of middle names a person can have (except running out of memory, exceeding the range of normal integers, etc., but you need not deal with those limitations explicitly.)

Submission

To submit use:
   ~rodger/bin/submit6 testboostramm names.cpp booster.txt