Answer to Question #123525 in Python for Hani

Question #123525
Draw a flowchart to calculate the acceleration (m/s2) obtained from the motion of the cable. Apply appropriate control structure for tracing any invalid input that might occur in the program. Mass of should be higher than mass .
1
Expert's answer
2020-06-23T06:06:46-0400
def acceleration(v0, v1, t):
    while v1 < v0:
        print('the data is incorrect, enter new ones')
        v1 = int(input('V1 >>> '))
        v0 = int(input('V0 >>> '))
    return str(((v1 - v0)) / t) + ' m/s2'


print(acceleration(int(input('V1 >>> ')), int(input('V0 >>> ')), int(input('time(in sec) >>> '))))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS