question archive You are a civil engineer who wants to create a program to automatically calculate moments of inertia for common cross-sections

You are a civil engineer who wants to create a program to automatically calculate moments of inertia for common cross-sections

Subject:Computer SciencePrice:3.85 Bought3

You are a civil engineer who wants to create a program to automatically calculate moments of inertia for common cross-sections. Table 1 shows three common moments of inertia.

In the script file, perform the following tasks:
− Prompt the user for the shape (i.e., ‘R’, ‘H’, ‘C’). HINT: Use a switch/case structure for this decision.
− Display an error message stating the available options and end the program if the user does not enter a valid choice.
− Prompt the user for the axis of the moment of inertia (i.e., 1 for xx, 2 for yy) for the rectangle and hollow rectangular section.
− Prompt the user for the appropriate inputs
− Calculate the moment of inertia
− Print the section shape, moment of inertia, dimensions corresponding to Figure 1, and axis (where appropriate) about which the moment of inertia is being calculated clearly labeled and with proper units to the command window.

Table 1: Bacteria Count Classification Bacteria Classification Surface Area Covered by Bacteria (in2) Low X 2.5 Medium-Low 2.5 XS45 Medium 4.5 x 6.5 High High 6.5 8.5 8.33

Option 1

Low Cost Option
Download this past answer in few clicks

3.85 USD

PURCHASE SOLUTION

Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

rated 5 stars

Purchased 3 times

Completion Status 100%

Related Questions