Question:
c++ program?
success
2007-02-15 21:07:09 UTC
Write a C++ program that calculates the pumping capacity required to remove rain in 2 hours for a specified area specified by length and width dimensions, and for specified prior rainfall accumulation and rate.



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.
Three answers:
iammisc
2007-02-15 21:11:44 UTC
This program is much better suited for fortran or some other math-based language. learn how to program yourself instead of asking so many questions. Yahoo! Answers is not going to write all your homework for you.
sewie_123
2007-02-16 11:57:25 UTC
Sounds like a great homework assignment. You should have fun doing it. I'd suggest finding a math book as well to help you out.
Supra Boy109
2007-02-15 21:12:42 UTC
That is right no one here at Yahoo! Answers will want to do your homework...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...