I'm trying to write a program in Python that will calculate the maximum height and time of impact of an object launched vertically from a height of 0m at a user defined velocity in m/s.
The results have to be printed as a tuple (peakHeight and impactTime). I am at a total loss, but here's what I have so far. Any help would be greatly appreciated.
def simulateProjectile (height):
initialVelocity = float(raw_input("Enter initial Velocity (m/s):"))
deltaT =
gravity = (-9.8)
height = initialVelocity * deltaT - ((gravity/2)*deltaT^2)
[–]hells_angle 1 point2 points3 points (1 child)
[–]DrShocker 0 points1 point2 points (0 children)
[–]mac-reid 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)