Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 {}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions