success
2007-02-15 21:07:09 UTC
Be sure to account for the following:
The area to be drained has length and width dimensions measured in metres
The previous rainfall accumulation is measured in millimetres
Rainfall rate is measured in millimetres per hour
Pumping capacity is measured in litres per hour
For example: Suppose that you have an area that is 5 metres by 8 metres, and rain has already accumulated to a height of 10 millimetres (this is the initial height before we start running the pumps). The rain continues falling at the rate of 2 millimetres per hour. The program would return the value 280 litres per hour as the pump capacity that is needed. You can use many functions to represent your solution. In any case, you must write at least two functions: one that converts millimetres into metres, and another that converts cubic millimetres into litres.
Note that 1one litre represents a volume of water that is a cube with sides of 100 millimetres.