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.
- We will solve this problem together in class on the board.
- We will write the algorithm together in class.
- We will write the code together in class.
- In the lab, you will use a text editor to type in the code that
we wrote on the board.
- This source file must be called box.c
- In the file header comment, put your name and section in
addition to the author, filename, date written and description
- You will compile the code, fixing all errors until you have a clean
compile.
- You will then run the program, by typing a.out and test it.
- 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.