Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use Python for this program and use # to explain the code when needed. I also attached the rubric for this program. Falling Distance
Please use Python for this program and use # to explain the code when needed. I also attached the rubric for this program.
Falling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period. distance 1/2* gravity * time*2 where distance is measured in meters, gravity is 9.8, and time is measured in seconds and is the amount of time the object has been falling. Write a function named falling_distance that accepts the object's falling time in seconds as an argument. The function definition header statement should look like: def falling distance(time): The function should return the distance, in meters, that the object has fallen during that time interval. Write a program that calls the function when the user enters a time interval that the object has been falling and displays the distance it has fallen. The user should be able to enter a time interval multiple times until the user enters a negative time to indicate that they want to stop. The distance should be displayed to 1 decimal place. Note that the formula does not contain any value for the weight (mass) of the object. This means that a 1 ounce bead should fall the same distance in a time interval as a 10 ton lead ball, neglecting air resistance. Google and see if that is true. Up to -10 for not using good standard programming conventions. 60 points function 20 points correct function definition 10 points function created with given name 10 one parameter - 20 points correct function call 10 points function called 10 points called with correct value passed - 20 correct calculation and return 10 points calculating value in function 10 points returning value 30 input output 10 points input taken correctly 10 points looping till negative entered 10 points output shown correctly 5 points correct output 5 points shown to one decimal Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started