IMPORTANT NOTICE -- Because this lab is not trivial and because we have a quiz and the Midterm coming up, the lab will be split into two parts, with the final part, now lab 6, not being due until Monday the 19th, after the Midterm.
This page explains what you are to do and turn in for this assignment. The background and details for the lab are in the details page [in preparation]. The lab will take place on Tuesday, February 6th and is due by 4pm on Monday, February 12th.
Overview: This lab will be somewhat different from the previous lab. In this lab, there'll be a total of ten cars, started at various positions, with slightly varying speeds. Each car "watches" the car ahead, noting the speed difference and separation between them. One of the cars slows to a stop, remains stopped for a while and then accelerates. The cars in front continue, but the cars behind come to a stop eventually (and hopefully in time!). To see a plot of a run of my version of the lab, look at this page and another run with different parameter settings.
An important page, available now, is the draft API and related details, derived from my finished Lab5/Lab 6 code. Be sure to look it over carefully.
From the point of view of program design and implementation, this lab will include the use of pointers as well as a "policy" for the car objects -- how they react to their going too fast or too slow or being too close to or too far away from the car ahead.
As I've said in my note on APIs, you will get extra credit if you track down and use an automated API documentation generator for C++.