Develop a java program of a swimming pool


Discuss the below:

Calculate Volume, and Time to Fill a Swimming Pool in Java

Develop a Java program which, given the width, length and depth (in metres), of a swimming pool, determines and outputs: (a) the volume in litres, and (b) the time in hours to fill the swimming pool. Assume the rate of flow into the pool is 2.5 litres per second. Note: 1 litre = 1000 cubic centimetres, therefore 10 litres = 0.01 cubic metre, hence 1 metre = 1000 litres (see Figure below).

Write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Remember also that by convention, class names commence with a capital letter.

Provide a well-structured solution that is easy to read. You should use meaningful identifier names and should provide useful comments.

593_volume of cube.jpg

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Develop a java program of a swimming pool
Reference No:- TGS01935659

Now Priced at $25 (50% Discount)

Recommended (97%)

Rated (4.9/5)