Advertisement
BigRedDoge

Untitled

May 27th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. ClrHome
  2. Lbl M
  3. Menu("Interest and Half-Life Formulas","List Formulas",LF,"List Variables",LV,"Compound Interest",CI,"Continuous Compound Interest",CC,"Half-Life",HL,"Exit Program",X)
  4. Pause
  5.  
  6. Lbl X
  7. ClrHome
  8. Stop
  9.  
  10. Lbl LF
  11. ClrHome
  12. Disp "Formulas:"
  13. Disp "Compound: A=C(1+R/N)^NT"
  14. Disp "Continuous/Growth: A=P^RT"
  15. Disp "Half-Life: A=P(1/2)^T/H"
  16. Pause ""
  17. Goto M
  18.  
  19. Lbl LV
  20. ClrHome
  21. Disp "Variables:"
  22. Disp "A = Final Amount"
  23. Disp "C = Initial Amount"
  24. Disp "r = Interest Rate"
  25. Disp "n = # Times Comp Per Year"
  26. Disp "t = # of Years Invested"
  27. Disp "h = Half-Life of Element"
  28. Pause ""
  29. Goto M
  30.  
  31. Lbl CI
  32. ClrHome
  33. Menu("Compound Interest Formula","Find Final Amount",FA,"Find Initial Amount",IA,"Find Interest Rate",IR,"Find Time Invest (Years)",TI,"Go Back",GB
  34. Pause
  35.  
  36. Lbl GB
  37. Disp "Compound Interest Formula"
  38. Disp "A=C(1+r/n)^nt"
  39. ClrHome
  40. Goto M
  41.  
  42. Lbl FA
  43. Input "Initial Amount = ",C
  44. Input "Interest Rate (%) = ",R
  45. Input "Times Compounded = ",N
  46. Input "Time Invested = ",T
  47. R/100→R
  48. C(1+(R/N))^NT→A
  49. Disp "Final Amount = ",A
  50. Pause ""
  51. Goto M
  52.  
  53. Lbl IA
  54. Input "Final Amount = ",A
  55. Input "Interest Rate (%) = ",R
  56. Input "Times Compounded = ",N
  57. Input "Time Invested = ",T
  58. R/100→R
  59. A/(1+(R/N))^NT→C
  60. Disp "Initial Amount = ",C
  61. Pause ""
  62. Goto M
  63.  
  64. Lbl IR
  65. Input "Final Amount = ",A
  66. Input "Initial Amount = ",C
  67. Input "Times Compounded = ",N
  68. Input "Time Invested = ",T
  69. N(((A^(1/NT))/C)-1)→R
  70. R*100→R
  71. Disp "Interest Rate (%) = ",R
  72. Pause ""
  73. Goto M
  74.  
  75. Lbl TI
  76. Input "Final Amount = ",A
  77. Input "Initial Amount = ",C
  78. Input "Interest Rate (%) = ",R
  79. Input "Times Compounded = ",N
  80. R/100→R
  81. log(A)/(N(log(C(1+(R/N))))→T
  82. Disp "Time Invested = ",T
  83. Pause ""
  84. Goto M
  85.  
  86. A=P^rt
  87.  
  88. Lbl CC
  89. ClrHome
  90. Menu("Continuous Compound Int","Find Final Amount",CF,"Find Initial Amount",CI,"Find Interest Rate",CR,"Find Time Invested",CT,"Go Back",GB
  91. Pause
  92.  
  93. Lbl CF
  94. Input "Initial Amount = ",P
  95. Input "Interest Rate (%) = ",R
  96. Input "Time Invested = ",T
  97. R/100→R
  98. P^RT→A
  99. Disp "Final Amount = ",A
  100. Pause ""
  101. Goto H
  102.  
  103. Lbl CI
  104. Input "Final Amount = ",A
  105. Input "Interest Rate (%) = ",R
  106. Input "Time Invested = ",T
  107. R/100→R
  108. A/(^RT)→P
  109. Disp "Initial Amount = ",P
  110. Pause ""
  111. Goto H
  112.  
  113. Lbl CR
  114. Input "Final Amount = ",A
  115. Input "Initial Amount = ",P
  116. Input "Time Invested = ",T
  117. log(A)/(T(log(P)))→R
  118. R*100→R
  119. Disp "Interest Rate = ",R
  120. Pause ""
  121. Goto H
  122.  
  123. Lbl CT
  124. Input "Final Amount = ",A
  125. Input "Initial Amount = ",P
  126. Input "Interest Rate (%) = ",R
  127. R/100→R
  128. log(A)/(R(log(P)))→T
  129. Disp "Time Invested = ",T
  130. Pause ""
  131. Goto H
  132.  
  133. Lbl HL
  134. ClrHome
  135. Menu("Half-Life","Find Final Amount",HA,"Find Initial Amount",HI,"Find Time Decaying",HT,"Find Half-Life",HH,"Go Back",GB
  136. Pause
  137.  
  138. Lbl GB
  139. Goto M
  140.  
  141. Lbl HA
  142. Input "Initial Amount = ",P
  143. Input "Half-Life = ",H
  144. Input "Time Decaying = ",T
  145. P((1/2)^(T/H))→A
  146. Disp "Final Amount = ",A
  147. Pause ""
  148. Goto H
  149.  
  150.  
  151. Lbl HI
  152. Input "Final Amount = ",A
  153. Input "Half-Life = ",H
  154. Input "Time Decaying = ",T
  155. A/((1/2)^(T/H))→P
  156. Disp "Initial Amount = ",P
  157. Pause ""
  158. Goto H
  159.  
  160. Lbl HT
  161. Input "Final Amount = ",A
  162. Input "Initial Amount = ",P
  163. Input "Half-Life = ",H
  164. (H)(log(A)/(log(P(1/2))))→T
  165. Disp "Time Decaying = ",T
  166. Pause ""
  167. Goto H
  168.  
  169. Lbl HH
  170. Input "Final Amount = ",A
  171. Input "Initial Amount = ",P
  172. Input "Time Decaying = ",T
  173. (((T)log(P(1/2)))/log(A))→H
  174. Disp "Half-Life = ",H
  175. Pause ""
  176. Goto H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement