Advertisement
Guest User

prgmALG2

a guest
May 7th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Menu("Solve for","Pressure",1,"Density",2,"Force",3,"Kinetic Energy",4,"Work",5,
  2. Lbl 1
  3. Menu("Solve for","Pressure",6,"Force",7,"Area",8
  4. Lbl 6
  5. Input "Force?",F
  6. Input "Area?",A
  7. Disp "Pressure:",F/A
  8. Stop
  9. Lbl 7
  10. Input "Pressure?",P
  11. Input "Area?",A
  12. Disp "Force:",PA
  13. Stop
  14. Lbl 8
  15. Input "Force?",F
  16. Input "Pressure?",P
  17. Disp "Area:",F/P
  18. Stop
  19. Lbl 2
  20. Menu("Solve for","Density",9,"Mass",10,"Volume",11
  21. Lbl 9
  22. Input "Mass?",M
  23. Input "Volume?",V
  24. Disp "Density:" ,M*V
  25. Stop
  26. Lbl 10
  27. Input "Mass?",M,
  28. Input "Density?",D
  29. Disp "Volume:"M/D
  30. Stop
  31. Lbl 11
  32. Input "Density?",D
  33. Input "Volume?",V
  34. Disp "Mass:" ,D*V
  35. Stop
  36. Lbl 3
  37. Menu("Solve for","Force",12,"Mass",13,"Acceleration",14
  38. Lbl 12
  39. Input "Mass?",M
  40. Input "Acceleration?",A
  41. Disp "Force:",M*A
  42. Stop
  43. Lbl 13
  44. Input "Force?",F
  45. Input "Acceleration?",A
  46. Disp "Mass:",F/A
  47. Stop
  48. Lbl 14
  49. Input "Force?",F
  50. Input "Mass?",M
  51. Disp "Acceleration:",F/M
  52. Stop
  53. Lbl 4
  54. Menu("Solve for","Kinetic Energy",15,"Mass",16,"Velocity",17
  55. Lbl 15
  56. Input "Mass?",M
  57. Input "Velocity?",V
  58. Disp "Kinetic Energy:",(M*V^2)/2
  59. Stop
  60. Lbl 16
  61. Input "Kinetic Energy?",E
  62. Input "Velocity?",V
  63. Disp "Mass:",2M/V^2
  64. Stop
  65. Lbl 17
  66. Input "Mass?",M
  67. Input "Kinetic Energy?",E
  68. Disp "Velocity:",2K/M
  69. Stop
  70. Lbl 5
  71. Menu("Solve for","Work",18,"Force",19,"Distance",20
  72. Lbl 18
  73. Input "Force?",F
  74. Input "Distance?",D
  75. Disp "Work:",F*D
  76. Stop
  77. Lbl 19
  78. Input "Work?",W
  79. Input "Distance?",D
  80. Disp "Force:",W/D
  81. Stop
  82. Lbl 20
  83. Input "Force?",F
  84. Input "Work?",W
  85. Disp "Distance:",W/F
  86. Stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement