*
Computer Programming II
Programming Assignment 1 - package.cpp *

Problem

Given user input weight, length, width, and height, write a program to decided whether or not a package is too large to be shipped.

Specification

A package weighing 100.0 pounds or more is overweight.
Output message: Package is within weight limits.                -or-
                Package is 99.9 pounds overweight.
                
A package with volume greater than 10 cubic feet is oversize.
Output message: Package is within size limits.                  -or-
                Package is 99 cubic feet oversize.

If package is within weight and size limits, output message:
                Ship package.

Discussion and Assumptions

All fields must be entered before limits are checked.

Assume correct weight input (positive real number).
Assume correct dimension input (positive integer).

Create your program documentation as Package.txt. You may use this sheet as partial documentation but should still write the algorithm including constants and variables.

You are expected to use functional decomposition to solve this problem. Include a module interface chart with your algorithm showing all input and output parameters.

Use the standard program header as shown in class.

Comment your program for readability and ease of maintenance. Include preconditions and postconditions for each method or function.

Include a test plan with your algorithm showing all the cases you will use to test your program and their expected outcome. Be sure to test your program thoroughly!

Don't start coding your program until you have completed your algorithm, module interface chart, and test plan!


Submission

Place your documentation and source files in your H:\CP2\Package project folder by the due date. There is nothing to hand in.

*
This page maintained by bobh@hesston.edu