HTML>
Assigned | Wed Feb 11, 2004 |
Program Due | Sunday Feb 22nd at 11:59pm |
Updates | Feb 19th
A clarification on the order of the command line arguments... The wording under the "Project Description" section implies that the first command line argument is MaxWeight and the second is MaxVolune. The sample output shows that the first argument is the MaxVolume and the second is the MaxWeight....the sample output is correct. |
Your project must contain the following function called from main, the code for which must be placed in Proj1Aux.cpp. Their prototypes and function header comments must be placed in Proj1Aux.h. Although the parameter types are given, the method of passing the parameters is up to you. Part of the project grade is choosing the appropriate method of passing parameters.
In the following prototypes, allCargo is a vector of Cargo structs containing the cargo loaded on the plane
Your project must use a structure to organize the data for a cargo container. Your structure
must contain the following data members
Only these functions may reference the data members of the Cargo structure.
The "make" utility is used to help control projects with large numbers of files.
It consists of targets, rules, and dependencies. You will be learning about
make files in discussion. For this project, the
makefile will be provided for
you. You will be responsible for providing makefiles for all future projects.
Copy the file
When you want to compile and link your program, simply type
the command make or make Proj1
at the Linux prompt.
This will compile Proj1.cpp, Proj1Aux.cpp and Cargo.cpp and create the
executable named Proj1.
The make utility can also be used for compiling a single program without linking.
For example, to compile Cargo.cpp, type make Cargo.o.
In addition to compiling and linking your files, make can be used
for maintaining your directory. Typing make clean will remove any
extraneous files in your directory, such as .o files and core files.
Typing make cleanest will remove all .o files, core, Proj1,
and backup files created by the editor. More information about these
commands can be found at the bottom of the makefile.
The grade for this project will be broken down as follows. A more detailed
breakdown will be provided in the grade form you receive
with your project grade.
You can check to see what files you have submitted by typing
More complete documentation for submit and related commands can be found
here.
Remember -- if you make any change to your program, no matter how
insignificant it may seem, you should recompile and retest your program before
submitting it. Even the smallest typo can cause compiler errors and a reduction
in your grade.
Avoid unpleasant surprises!
Your project must contain the following functions, the code for which must be placed in Cargo.cpp.
Their prototypes and function header comments will be placed in Cargo.h.
Other Cargo-related functions are permitted as you deem necessary.
Although the parameter types are given, the
method of passing the parameters is up to you. Part of the project grade is choosing the
appropriate method of passing parameters.
Project Requirements and Restrictions
Sample Output
This sample output is provided to show you a reasonable
output format which satisfies the project requirements.
It is not necessary that you follow this format exactly,
but whatever format you choose must provide all required information
in tabular form. Note that the use of tabs will make the columns
left-justified.
Free Advice and Information
Project Design Assignment
There is no project design assignment for this project.
Project Makefile
Grading
85% - Correctness
This list may not be comprehensive, but everything on this list will be
verified by the graders.
15% - Coding Standards
Your code adheres to the
CMSC 202 coding standards as discussed
and reviewed in class.
In particular, since this is your first C++ program, pay attention to
the list below. Graders will check all applicable items in the coding standards.
Project Submission
Assuming you've used the recommended file names, then
to submit your project, type the command
Be sure to use the submitmake and submitrun utilities provided
for you to compile, link and run your program after you've submitted it.