|
CMSC 104 Boxes Assigned: Monday 3/29/99 |
The objective of this assignment is to get you started writing programs in C in the UNIX environment. This project will give you practice using arithmetic operators, printf() for output and scanf() for input
Your assignment is to write a program that will input the dimensions (length, width and height) of a box. Your program wil then calculate and display the surface area and volume of the box.
Your program should input the dimensions as integer feet. You may assume that the user will input only positive values. Your program does NOT need to validate the input.
Be sure that your program has a file header comment that includes
Your program must adhere to the
coding standards and
indentation styles discussed in class.
Be sure your project is well commented.
See course syllabus for project grading guidelines and
university policies concerning sharing of code.
Although your output need not be identical to the above, all information must be present.
Your C source code file for this project MUST be called proj1.c.
To submit your project, type the following at the Unix prompt:
submit cs104-103 proj1 proj1.c
To verify that your project was submitted, you can execute the following command at the Unix prompt. It will show all files that you submitted in a format similar to the Unix 'ls' command.
submitls cs104-103 proj1