Question: Q.2: Python: Classes a) Moment of Inertia Can you come up with centroid calculation that it includes the calculation of the two moments of inertia,
Q.2: Python: Classes
a) Moment of Inertia
Can you come up with centroid calculation that it includes the calculation of the two moments of inertia, Ix, and Iy.
b) Centroid
Please to write a centroid program which should ask the user to input a user-defined number of rectangles and calculate the centroid of the compound shape. Also, draw the rectangles using "turtle" so you can see if it is doing what you wanted.
c) Rectangle Class
Create a class to describe a rectangle. It doesn't have to be an actual Python class - you can just describe the important elements of the class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
