Calculating the volume of water needed to fill a fish tank.
Supplements are often added to an aquarium to replace minerals, fertilisers or for medication. Knowing the correct volume of water in the tank is important so you know how much to dose.
⭐⭐⭐
Write a program that calculates the volume of a fish tank in litres and imperial gallons from the length, height and depth in centimeters.
Remember to add a comment before a subprogram to explain its purpose.
volume so that:litres_to_gallons so that:main program so that:Enter the length of the tank in cm: 60
Enter the height of the tank in cm: 30
Enter the depth of the tank in cm: 24
A 60 x 30 x 24 cm tank is 43.2 litres and 9.50285965684118 imperial gallons.