For the following computer problem, any appropriate software may be used. Input prompts should fully explain what is required of the user (the program should be user-friendly). The resulting output should be well labeled and self-explanatory. For spreadsheet problems, any appropriate software may be used.
Write a program that will calculate the moments of inertia about the X–X and Y–Y centroidal axes for the semicircle of Problem. The calculation is to be based on Eq. (8-4) and a summation of the effects of component areas. User input is to be as stated in Problem.
Problem
Write a program that will calculate the location of the centroid of a semicircle (measured from the diameter line). This may be accomplished by dividing the area into slices of uniform width, either parallel or perpendicular to the diameter, and applying Eq. (7-4). User input isto be the radius and width of the slice. Check the result with that obtained from Table 2. Note how the accuracy varies with the choice of the slice width.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.