Question: Sample run 1 : Programming Assignment 1 : Pendulum List of planets 1 for Mercury 2 for Venus 3 for Earth 4 for Mars 5

Sample run1:
Programming Assignment 1: Pendulum
List of planets
1 for Mercury
2 for Venus
3 for Earth
4 for Mars
5 for Jupiter
Please select one of the above choices: 7
SystemExit: Wrong choice.... end of the program
Sample run2:
Programming Assignment 1: Pendulum
List of planets
1 for Mercury
2 for Venus
3 for Earth
4 for Mars
5 for Jupiter
Please select one of the above choices: 1
Input length of pendulum in centimeters -3
SystemExit: Wrong value for length of pendulum....end of the program
Sample run3:
Programming Assignment 1: Pendulum
List of planets
1 for Mercury
2 for Venus
3 for Earth
4 for Mars
5 for Jupiter
Please select one of the above choices : 2
Input length of pendulum in centimeters 3
Planet Acc.Gravity Period Frequency
Sample run4:
Programming Assignment 1: Pendulum
List of planets
1 for Mercury
2 for Venus
3 for Earth
4 for Mars
5 for Jupiter
Please select one of the above choices: 3
Input length of pendulum in centimeters 5
Planet Acc.Gravity Period FrequencyFigure 2. Sample run of the program .
Give me the code for this program without using function and {}
 Sample run1: Programming Assignment 1: Pendulum List of planets 1 for

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!