Professional Documents
Culture Documents
Problem Statement:
The perimeter, approximate surface area, the approximate volume of an in ground
pool are given by the following formula:
Perimeter = 2(length + width)
Volume = length * width * average depth
Underground surface area = 2(length + width) average depth + length * width
Using these formula as a basis, write a MATLAB program that accepts the length,
width and average depth measurements, and then calculates the perimeter, volume,
and underground surface area of the pool. In writing your program, make the
following two calculations immediately after the input data has been entered: length
* width and length + width. The results of these two calculations should then be
used, as appropriate, I n the assignments statements for determining the perimeter,
volume, and underground surface area without recalculating them for each equation.
Verify the results of your program by doing a hand calculation using the following test
data: length equals 25 feet, width equals 15 feet, and average depth equals 5.5 feet.
When you have verified that your program is working, use it to complete the following
table:
Name: _________________________________________
Criteria Score
Total 100