Question: Write a program using the following function headers: double getLength(); double getWidth(); double getArea(double len, double wid); void displayData(double len, double wid, double area); Write
Write a program using the following function headers:
double getLength();
double getWidth();
double getArea(double len, double wid);
void displayData(double len, double wid, double area);
Write function main which calls these four functions. Make sure that the length and width are positive numbers.
Hand in 2 runs showing valid and invalid data.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
