create account

5.13. (Part 2) Falling Distance - Python by kakradetome

View this thread on: hive.blogpeakd.comecency.com
· @kakradetome ·
$6.33
5.13. (Part 2) Falling Distance - Python
https://www.youtube.com/watch?v=LsYqzSYb9y8

Starting out with Python, Third Edition, Tony Gaddis
Chapter 5
Programming Challenges

13. 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 = 1/2 * g * t(squared)

The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time, in seconds, that the object has been falling. Write a function named falling_distance that accepts an object's falling time(in seconds) as an argument. The function should return the distance, in meters, that the object has fallen during that time interval. Write a program that calls the function in a loop that passes the values 1 through 10 as arguments and displays the return value.

Starting out with Python. Third Edition. Tony Gaddis.

Happy Steeming Everyone! :)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorkakradetome
permlink5-13-part-2-falling-distance-python
categoryprogramming
json_metadata{"tags":["programming","coding","python","tony-gaddis","falling-distance"],"image":["https://img.youtube.com/vi/LsYqzSYb9y8/0.jpg"],"links":["https://www.youtube.com/watch?v=LsYqzSYb9y8"],"app":"steemit/0.1","format":"markdown"}
created2017-01-29 01:20:06
last_update2017-01-29 01:20:06
depth0
children0
last_payout2017-03-01 05:26:51
cashout_time1969-12-31 23:59:59
total_payout_value4.785 HBD
curator_payout_value1.549 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length920
author_reputation31,794,084,266,065
root_title"5.13. (Part 2) Falling Distance - Python"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,368,927
net_rshares30,400,509,908,901
author_curate_reward""
vote details (35)