Write the definition of a class, swimmingPool, to implement the properties of a swimming pool. Your class should have the instance variables to store the length (in feet), width (in feet), depth (in feet), the rate (in gallons per minute) at which the water is filling the pool, and the rate (in gallons per minute) at which the water is draining from the pool. Add appropriate constructors to initialize the instance variables. Also 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.
Copyright © 2024 QUIZLS.COM - All rights reserved.
Answers & Comments
Verified answer
I still have the code.
Mail me to get it. [email protected]
But since you didn't react the last time, I suspect you have no intention of actually paying the $10. You're just looking for somebody naive enough to just post the code.
Good luck with that.