Moments of inertia: The rotational equivalent of mass is inertia, I, which depends on how an object’s mass is distributed through space. The moments of inertia for Disk rotating around its center is:
I = 1/2 mr2
Where m is the mass and r is the radius.
Write the pseudocode and draw the flowchart for the algorithm that will accept the mass and radius from a user and then print the moment of inertia of the disk rotating.
The pseudocode:
Start
Declare variable mass
Declare variable radius
Declare variable momentInertia
Get mass from a user
Get radius from a user
momentInertia=(1/2)*mass*radius*radius
Display the moment inertia
Stop
The flowchart:
Comments
Leave a comment