Answer:
The height of the ball after t seconds is h + vt - 16t 2 feet:
def main():
getInput()
def getInput():
h = int(input("Enter the initial height of the ball: ")) # Adding the int keyword before input() function
v = int(input("Enter the initial velocity of the ball: ")) # Same as above
isValid(h,v)
def isValid(h,v):
if ((h <= 0) or (v <= 0)):
print("Please enter positive values")
getInput()
else:
maxHeight(h,v)
def maxHeight(h,v):
t = (v/32)
maxH = (h + (v*h) - (16*t*t))
print ("\nMax Height of the Ball is: " + str(maxH) + " feet")
ballTime(h, v)
def ballTime(h,v):
t = 0
ballHeight = (h + (v*t) - (16*t*t))
while (ballHeight >= 0):
t += 0.1
ballHeight = (h + (v*t) - (16*t*t))
print ("\nThe ball will hit the ground approximately after " + str(t) + " seconds")
# Driver Code
main()
<span>Jeff Howe in 2006 is your Answer.</span>
Answer:
Viruses are made from people all over the internet these days. they can be made from links you click on or things you download. Some are obvious some are not. gotta be careful on the internet these days!
Explanation:
Answer:
A merchant is a person who buys or sells goods in large quantities, especially one who imports and exports them.
Answer:
The # marker is used to mark a line comment in python.
Explanation:
The line that starts with # is a comment.Python will ignore the lines that starts with #.These comments can be used to add extra information in the python code.
For example:-
Following is the python code with comments.
names=['sam','optimus','bumblebee'] #names is the list of transformers characters.
for i in names:
print(i) #printing the names.
There are 2 comments in the python code written above.These are ignored by python.