A weir is a rectangular orifice that is used to measure water discharge. In this example, the top of…