♦ This program calculates discharges Q in three pipes connected to three reservoirs A, B, and C.
♦ The reservoirs are connected to a central point D at elevation z_{D}.
♦ The program uses the energy equation in the three pipes, and the continuity equation in junction D.
♦ A trialanderror algorithm satisfies continuity at junction D.
♦ The discharges calculated are: Q_{AD}, Q_{BD}, and Q_{DC}.
♦ The directions are those indicated in the figure.
♦ Minor head losses are neglected.
♦ If input z_{A} elevation results in Q_{AD} negative, an error message (Error message 15) is printed and the calculation stops.
♦ Any input value left blank (or zero) will trigger a fatal error message.
♦ The program can handle either SI (metric) or U.S. Customary units.
♦ Discharge output is in m^{3}/s and L/s (SI units); or cfs and gpm (U.S. Customary units).
