Question: #Define gravity gravity = 9 . 8 def main ( ) : #Get the input from user second _ total = int ( input (

#Define gravity
gravity =9.8
def main():
#Get the input from user
second_total = int(input("Enter time: "))
#Show results
distance_thrown(second_total)
#Funciton for the distance
def calculation_thrown(time):
distance =0.5* gravity * time **2
return distance
#Function to calculate the time
def distance_thrown(time):
for num in range(1, time +1): # Letting user choose number of seconds
distance_fallen = calculation_thrown(num) #Replace the number the user
choose for the time
print("The", distance_fallen, "in", num ) #Write print out statement
#Call the main function
main()

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!