Second Assignment, due 14th February 2002

Electronic Submission, hw2

 

The task is exactly the same as for hw1, except that this time you are to define a struct that represents a person, and just have an array of those struct objects instead of 9 arrays of strings for the individual fields.

 

Take great care to produce a good, clear program. Avoid unnecessary repeated code whenever possible. Define functions to perform all useful self-contained tasks (such as printing a person, comparing two persons, etc), even if the task is only performed once. Remember, homeworks are necessarily quite small assignments, but you must program them as conscientiously as you would a huge complex real-world job, because that is exactly what you are preparing for.