Question: 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
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: d = gt2
Your program will calculate the distance in meters based on the objects falling distance. Modularity:
falling_distance will be passed one parameter which is the time in seconds the object has been falling and will calculate and return the distance in meters. falling_distance should be stored in a separate file (module) called distance.py
Programming Style Requirements.
Comments Begin your program with a comment that includes: a) your name, b)program status either Complete or describe any incomplete or non-functioning part of your program
c)A 1-3 line description of what the program does.
Function comments each function should begin with a comment explaining what the function does
Variable names use meaningful variable names such as total_taxes or num_cookies. Function names use meaningful verb names for functions such as display_taxes. Named constants Use named constants for all number values that will not be changed in the program
please just do distance.py
with
The variables in the formula are as follows:
d is the distance in meters
g is 9.8 (the gravitational constant)
t is the amount of time in seconds the object has been falling
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
