Question: 1 - Problem description: Pendulum Figure 1 . Pendulum Pendulum, is a body suspended from a fixed point on a string so that it can
Problem description: Pendulum
Figure Pendulum
Pendulum, is a body suspended from a fixed point on a string so that it can swing back and forth under the influence of gravity.
A cycle of a pendulum is when we pull it back then we release it the pendulum will swing out then swing back and that's called one cycle. Period is the time it takes the pendulum to complete one cycle, while the frequency is the number of cycles the pendulum completes in one second which is
The period is measured in seconds according to the following equation.
Where
is length of the string in meters
Acceleration gravity
For example, on Mars the acceleration gravity is and if the length of the string is then the period equals and the frequency is
Programming task:
Write a python program that:
Display list of planets shown in table asking about which planet the user wish to generate the values of period and frequency.
Make sure the length of the string is
Declare the suitable constants.
Generate formatted output as shown in sample runs Figure for different planets in the solar system calculating the period and the frequency of the pendulum experiment for a specific planet using Table information.
Table Acceleration gravity on some planets
Give me python program with this output :
Programming assigment
List of planets
for mercury
for venus
for earth
for march
for jupiter
please select on of above choice :
systemExit : wrong choice end of program
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
