Assigned | Wed Sept. 17, 2003 |
Program Due | Tues Sept 23, 2003 at 11:59pm |
Updates | 20 Sept 2003 -- A note to help clarify the sample output was added. Also, in the third example output, the ending number of pounds was incorrectly shown as 10; its been changed to 100 which is the correct value. |
Your program must contain the following functions. The code for these functions must be found in Pounds.cpp. Their prototypes and function header comments must be found in Pounds.h which is included in Proj1.cpp. The names of the functions are left to you, but must follow our coding standards. The parameters and return type for each function are also left to you, but you must carefully consider how each parameter should be passed. Deductions will be made for parameters which are not passed using the best method. Other functions are permitted as you see fit.
Since we have not yet studied formatted output (other than how to output values with a fixed number of decimal places), using TAB and space characters to obtain the column spacing is permitted.
Clarification added 20 Sept.
In this output, the first column is the number of pounds.
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, Pounds.cpp and create the
executable named Proj1
In addition to creating your project executable, 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 recieve
with your project grade.
The second and third columns go together in that
10000 pounds = 4535 Kg + 970 gram.
The last column is the number of pounds covnverted
only to kilograms. I.e. 10000 pounds = 4535.970 kilograms.
Depending on how you did your calculation and printing,
there may be a difference of 1 between the grams and
the fractional part of the 4th column.
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.
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!
Be sure to use the submitmake and submitrun utilities provided
for you to compile, link and run your program after you've submitted it.