Write a user-defined function that determines the coordinate yc of the centroid of the U-shaped cross-sectional area

Question:

Write a user-defined function that determines the coordinate yc of the centroid of the U-shaped cross-sectional area shown in the figure. For the function name and arguments, use yc = centroidU (w, h, t, d), where the input arguments w, h, t, and d, are the dimensions shown in the figure and the output argument yc is the coordinate yc.
Use the function to determine Yc for an area with w = 10 in., h = 7 in., d = 1.75 in., and t = 0.5 in.
y.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: