Write a program that will calculate the location of the centroid for a tee shape similar to that of Problem 7.7 . User input is to be the width and the depth of the two rectangles. (The upper element is called the flange; the lower element is called the web.)
![2185_dfa0cecf-e9f9-402d-9176-63061f8cda2b.png](https://secure.tutorsglobe.com/CMSImages/2185_dfa0cecf-e9f9-402d-9176-63061f8cda2b.png)