I've made this sample grading form
available. You can expect the grading forms for this semester to look similar,
but they will not look exactly like this.
This Sample Design Document
written by one of our former TAs, Carrie Desmond,
is from the Spring 2003 semester's project 1.
It is an excellent design file and what we would like
to see although it surpasses the requirements somewhat.
Notice that design file she has written will actually
become her header file with very little modification. Her
description of main() is the high-level algorithm that was
described in the Description of Project 1 lecture that semester
and, as written, is a complete skeleton of that project.
Required function FindTotals( )
There was a mistake in the function prototype for the required function
FindTotals( ). It should be :
void FindTotals (CAR* train, int numCars, float* costPtr, float* wtPtr);
File-handling & Dynamic Memory Allocation
Since the material on file handling and dynamic memory allocation
was just introduced, you may do these things in main() for this
project.
Extra Credit
For 5 points of extra credit draw an engine for the train that is the
length of two regular cars. So depending upon the number of cars in
the cars.dat file we use to test your code, the first line of the train
will contain the engine and 0 - 3 cars, with 3 cars if possible. All
other lines of the train will have 5 cars per line with the exception
of the last line, which will have 0 - 5 cars.