Question: 1 - Problem description: Pendulum Figure 1 . Pendulum Pendulum, is a body suspended from a fixed point on a string so that it can

1- Problem description: Pendulum
Figure 1. 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 (T) is the time it takes the pendulum to complete one cycle, while the frequency (F) is the number of cycles the pendulum completes in one second which is F=1T.
The period is measured in seconds according to the following equation.
T=2Lg2
Where
L= is length of the string in meters
g= Acceleration gravity
For example, on Mars the acceleration gravity is 3.71 and if the length of the string is 70cm then the period equals 2.73, and the frequency is 0.37
2- Programming task:
Write a python program that:
Display list of planets shown in table 1, asking about which planet the user wish to generate the values of period and frequency.
Make sure the length of the string L is >0.
Declare the suitable constants.
Generate formatted output as shown in sample runs Figure 2 for different planets in the solar system calculating the period and the frequency of the pendulum experiment for a specific planet using Table (1) information.
Table 1. Acceleration gravity (ms2) on some planets
Give me python program with this output :
Programming assigment 1
List of planets
1- for mercury
2-for venus
3-for earth
4-for march
5-for jupiter
please select on of above choice :7
systemExit : wrong choice .. end of program
 1- Problem description: Pendulum Figure 1. Pendulum Pendulum, is a body

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!