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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!