Question: A rectangular swimming pool has the following properties .length (in feet),width( in feet),depth (in feet),the rate (ingallons per minute) at which the water is filling
A rectangular swimming pool has the following properties .length (in feet),width( in feet),depth (in feet),the rate (ingallons per minute) at which the water is filling the pool, and the rate (in gallond per minute) at which the water is draing from the pool.Write the definition of a class swimmingPool to implement the properties of the swimming pool/The class should have appropriate constructors to initialize the instance variables and member functions to do the following:
a]determine the amount of water needed to fill an empty or partially filled pool
b]determine the time needed to completely or partially fill or empty the pool
c] add or drain water for a specific amount of time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
