Many cross sections can be approximated by a series of rectangles as shown. Write a computer program that can be used to calculate the products of inertia of cross sections of this type with respect to horizontal and vertical centroidal axes. Use this program to solve
(a) Prob. P9.71,
(b) Prob. P9.75,
(c) Prob. 9.77.