CSE 1311 - Section 2 - Assignments - Assignment 9

Due date: Wednesday, April 14, 2010, 11:55pm.


Task 1 (100 points)

Complete the code already written in files task1.cpp and address.h, so that behaves as follows: For example, suppose that the user types in as address:
5 Random_Street Anytown Anystate
Then, the program should print out the following:
a1, at step 0:
5 Random_Street, Anytown, Anystate

a1, at step 1:
20 Random_Street, Anytown, Anystate

a2, at step 2:
20 Xandom_Street, Anytown, Anystate

a3, at step 3:
20 Random_Street, Anytown, Massachusetts

Note that the main function is already defined in file task1.cpp. You are not allowed to modify that, except:


How to submit

Submisions are only accepted via WebCT. The submission should include your C or C++ source and header files, and answers.doc. Do not submit entire project directories, or anything else except for the .h, .c and .cpp files and the answers.doc file.

Your answers.doc file should be a single Microsoft Word file that includes:

Make sure that your answers.doc file is easy to parse, and that it is easy for us to figure out which part corresponds to which task. Feel free to use headings such as "start of copy of task1.c".

We try to automate the grading process as much as possible. Not complying precisely with instructions causes a significant waste of time during grading, and thus points will be taken off for failure to comply, and/or you may receive a request to resubmit.

Submission checklist