Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write the definition of a class, Swimming Pool, to implement the properties of a

ID: 3755583 • Letter: W

Question

Write the definition of a class, Swimming Pool, to implement the properties of a swimming pool. Your class should have the instance variables to store: the length (in meters), width (in meters), depth (in meters), the rate (in liters per minute) at which the water is filling the pool, and the rate (in liters per minute) at which the water is draining from the pool. Add member functions, to do the following: Determine the amount of water needed to fill an empty or partially filled pool; The time needed to completely or partially fill the pool or empty the pool; add water or drain for a specific amount of time. Include also a Test class, to test the functionalities of the implemented classes.

Explanation / Answer

#include using namespace std; int main() { swimmingPool mySwimmingPool; int length, width, depth, rateToFill, rateToDrain; cout