Problem

(Program) The perimeter, approximate surface area, and approximate volume of an in-groun...

(Program) The perimeter, approximate surface area, and approximate volume of an in-ground pool are given by the following formulas:

Using these formulas as a basis, write a C++ program that accepts the length, width, and average depth measurements, and then calculates the pool’s perimeter, volume, and underground surface area. In writing your program, make these two calculations immediately after entering the input data: length × width and length + width. The results of these two calculations should be used, as needed, in the assignment statements for determining the perimeter, volume, and underground surface area without recalculating them for each equation. Verify your program’s results by doing a hand calculation, using the following test data: length = 25 feet, width = 15 feet, and average depth = 5.5 feet. After verifying that your program is working, use it to complete the following chart:

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 3.4