UMBC CMSC104 CSEE

UMBC CMSC 104

CMSC104

Problem Solving and Computer Programming

Sections 0301 and 0701

104 | current 104

Project 1

Due

Project 1 is worth 100 points and due at midnight, Wednesday, 13 March.

Requirements

Create a file named proj1.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: 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 the following command: ./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 Blackboard to submit the project to the TA for grading. Do not email it to the instructor!

Grading

This project will be grade using the following scale:

Documentation 25 points
Correct Results25 points
Correct Sytle25 points
Other25 points

Comments Required

        /*****************************************************/
        /* Program Header Block                              */
        /* Filename:       homework5.c                       */
        /* Name:           Ima Student                       */
        /* SSAN:           123-45-6789 (could be XXX-XX-6789)*/
        /* Date:           6 April 1998                      */
        /* Course/section: CMSC-104/0101                     */
        /* Description:                                      */
        /*     Analysis:                                     */
        /*         Input:                                    */
        /*         Output:                                   */
        /*         Constraints:                              */
        /*         Formulas:                                 */
        /*         Assumptions:                              */
        /*     Design:                                       */
        /*         (Your psuedocode goes here.)              */
        /*                                                   */
        /* Notes:          (As needed.)                      */
        /*****************************************************/
        


UMBC | CSEE |