 # Untitled

a guest
Nov 12th, 2019
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. # Jeff's amazing acceleration solver.
2.
3. #Integrate with virtual robot.
4.
5. print("Hello Jeff!")
6.
7. mass = int(input("What's the mass of the object? (kg)"))
8.
9. print(mass)
10.
11. print("Now we figure out the down force (gravity) by doing Mass x -9.8 N (mg N) which is ", mass * -9.8)
12.
13. secondForce = int(input("Are there anymore forces going + (up) or - (down) on the object? (N) (Y axis) if none then type '0' "))
14.
15. print(secondForce)
16.
17. print("So what happens is that all the forces on the Y axis get pluggin into F = m x a for 'R' which equals: ", mass * -9.8 + secondForce)
18.
19. print("Now we're going to move onto the X axis!")
20.
21. Mu = float(input("What is the coeffecient of Mu?"))
22.
23. print(Mu)
24.
25. print("Now we're going to do Fmax = Mu x R to figure out 'F' which is: ", Mu * mass * -9.8)
26.
27. input("\n\nPress the enter key to exit.")
RAW Paste Data