Project 5


The project documents will be added to this page as they become available. If you get a page that says "not yet available," it should become available in the future. Ask about it only if we announced that it was supposed to be available.

Note:Files listed as "pdf" can be viewed or downloaded and printed at high-quality with Adobe's Acrobat Reader.

Files listed as text are plain ASCII text files. The should display in your browser with correct formatting, but can also be downloaded from the course file server; downloading with an ftp utility set to ASCII text mode is recommended for code and sample files to avoid line-ending problems.


Documents

Component Specification Files

Behavior Samples

The following sample behavior files illustrate the program behavior and contain all of the different output message text strings produced by the program that appear only in Project 5. You can adapt the samples from Project 4 to provide a regression sample to illustrate that your program still behaves like Project 4 in other respects (but notice that your final version should not output the constructor and destructor messages). Your program should match your adapted Project 4 samples and the samples below exactly so that you can be sure it is producing all of the different kinds of messages correctly. However, these samples are not a complete test of your program. Your program will be tested for a large number of other possible inputs and input sequences. The console interaction files are a capture of the console display during the program run. The _in.txt and _out.txt files are for you to use with redirected I/O. When given the _in.tx file redirected to cin, your program's cout redirected to a file should match the _out.txt file exactly.

The following sample illustrates the behavior of the program when "status" is used after almost every "go" command, with no "show" commands. It is similar to Project 4's sample, but shows the new Cruiser behavior and the different time course for Ship sinking. Your program should reproduce the output file exactly.

The following sample illustrates the behavior of the program with the Cruise_ship and no views. Your program should reproduce the output file exactly.

The following sample shows the output produced by the program for all three kinds of views, along with the related error messages. This sample shows the bridge view for a sunken ship. Your program should reproduce the output files exactly. Notice the plural: Views, not View.

These samples demonstrate the program behavior and are supposed to contain each of the specified output strings. It is not a complete test of your program. Your program will be tested for a large number of other possible inputs and input sequences. The console outputs are a saved copy of a console (shell) window after entering the commands by hand. The _in input file is suitable for redirecting input, and the _out output can be compared with the redirected output of your program. Your program should match the stdout output.