UMBC CMSC 104 Spring 2000 CSEE | 104 | current 104

Lab Exercise 2 & Homework 4

Due Date: 3/29/00

The Problem

Determine the surface area and volume of a box that is 12 inches long, 8 inches wide and 5 inches high.

  1. We will solve this problem together in class on the board.
  2. We will write the algorithm together in class.
  3. We will write the code together in class.
  4. In the lab, you will use a text editor to type in the code that we wrote on the board.
  5. You will compile the code, fixing all errors until you have a clean compile.
  6. You will then run the program, by typing a.out and test it.
  7. You must send me, bogar@cs.umbc.edu, an email from pine, with the file box.c as an attachment.

This lab exercise IS your Homework 4 assignment.