Question: Write a Python program that, inside a loop, does several things: a) Asks the user for values of mass in kg, damping in N/(m/s), and
Write a Python program that, inside a loop, does several things:
-
a) Asks the user for values of mass in kg, damping in N/(m/s), and stiffness in N/m and appends the user's
values to the ends of list variables that were initially set to empty.
-
b) Prints out the natural frequency in Hz and the damping ratio.
-
c) Asks the user if they want to continue

Background: In analysis of 2nd-order mechanical system dynamics, we often consider how the positive, real parameters for mass m and stiffness k and nonnegative, real parameter damping c affect the system's response x Or, dividing through by m, we can put things in terms of two parameters dt2 n dt where the two parameters are Wh- is the natural frequency of the system, typically in 1/sec or radians/sec units, though it is often useful to show natural frequency in Hz (which is cycles/second), as given by = ah/2n is the damping ratio of the system (unitless) 2Vkm and we can find nonnegative, real values for wn and 7 It turns out that important changes to the system response take place, depending on the value of Thus Value of System Response undamped underdamped critically damped overdamped 1) Write a Python program that, inside a loop, does several things: a) Asks the user for values of mass in kg, damping in N/(m/s), and stiffness in N/m and appends the user's values to the ends of list variables that were initially set to empty b) Prints out the natural frequency in Hz and the damping ratio c) Asks the user ifthey want to continue Then, when the user is done entering values, leave the loop. Print out a neat table with the user's values, the values for natural frequency and damping ratio, and the type system response, as given above. The table should start with header and unit rows, as shown in the example run below. Numerical values should be formatted wide enough to make neat columns and show 4 digits to the right of the decimal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
