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 .

Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS