Question: Please can I get answer this question with python ( functions) as below following my instructor instructions using comments in front of each code ?

Please can I get answer this question with python ( functions) as below following my instructor instructions using comments in front of each code ?

Note: main_This function contains the main line logic and calls the Falling Distance function with the information as described above and prints the results, putting def main () in the first program.

?

Please can I get answer this question with python ( functions) as

Problem 2. [10 points] 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) - or distance equals one-half of (gravity multiplied by time squared). The variables in the formula are as follows: distance = is the distance in meters gravity = is the gravity, 9.8 time = the amount of time, in seconds, that the object has been falling. With the help of the IPO chart below design a function distance_falling that accepts an objects falling time (in seconds) as an argument. The function should return the distance, in meters, that the object has fallen during the time interval. Design a program (falling. py) that calls the function in a loop that passes the values 5-14 as arguments and displays the return value. main - This function contains the main line logic and calls the Falling Distance function with the information as described above and prints the results. distance_falling - This function should calculate the distance as demonstrated by the formula above and return the result to the main function. MAIN FUNCTION Falling.py (Main line logid INPUT PROCESSING OUTPUT time fall values 2-14 Processing Items: NONE distance @ 2 distance @ 3 Algorithm: distance 0 4 1. Generate time fall values 2-14 distance @ 14 2. Call the Falling Distance function 3, Display output See expected output: The object fell 19.6 meters in 2 sects) The object fell 44.1 meters in 3 sects) The object fell 78.4 meters in 4 sects) The object fell 122.5 meters in 5 sec(s]

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 Programming Questions!