Is it okay to find cars that are in the impound lot?

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Charles Hannum Jr on November 20, 2001 at 14:12:27:

I was looking at the test data and noticed that in McQuain's sample logs that a car that had been impounded at address 0 returned the "no car found w/ plate" message when the locate command for that car's license was given. I also saw him mention that since spec didn't say exactly what happened when a car was impounded that simply deleting the car was acceptable.

In my implementation, the impound lot is an array of car pointers that I have a special case for when dropping off at address 0. Hence, the car can be found when you search for it in this sort of case. I am assuming that for impounded cars (not crushed, obviously, as they are spec'd to "be gone") either a "cannot be found" or a "car is at impound lot" message is acceptable. Just checking because I'm not looking to get points taken off because I went above the requirements of the spec.

Follow Ups:

Post a Followup




Optional Link URL:
Link Title:
Optional Image URL:

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]