Please send questions to
st10@humboldt.edu .
/*--------------------------------------------------
created by st10 at Wed Apr 4 15:22:49 PDT 2007
--------------------------------------------------*/
#include <iostream>
#include <cmath>
using namespace std;
#include "rect_area.h"
/*--------------------------------------------------
Contract: rect_area : double double -> double
Purpose: to compute and return the area of rectangle with
dimensions <length> and <width>
Examples: rect_area(3, 4) == 12
rect_area(1.5, 3) == 4.5
--------------------------------------------------*/
double rect_area(double length, double width)
{
return length * width;
}