Project 2 is worth 100 points and due at midnight, Monday, 5 April.
Requirements
Create a file named proj2.c, using the editor of your choice.
This program is to calculate the surface area and volume of a box. You will have
to calculate the area for each of the six sides (length times wide) and add the
results together. To calculate the volume, it is length times wide times
height.
You will have to select the dimensions of the box and document it under the assumptions
in your program header comment block.
Compiling
Compile the program with the following command:
cc proj2.c
If you got an error and you probably did, simply go back into the editor and fix it.
Then recompile, continuing until you get no warnings or errors.
Executing
Execute the program with one of the two commands:
a.out
./a.out
If everything worked correctly, you should get the messages giving the total surface area
and the volume.
Notice that the UNIX prompt must be on the next line!
Turning in your homework
Once you have everything absolutely correct, you must use the following set of commands to create
the file that you will send to the TA for grading.
script
cat proj2.c
cc proj2.c
./a.out
exit
mail ldemir1@cs.umbc.edu < typescript
Notice that the first character in the TA's address is "ell", the last one is the number "one".
Grading
This project will be grade using the following scale: