Finite Element Approximations to the System of Shallow Water Equations, Part III: On the Treatment of Boundary Conditions