Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1.  
  2. Float
  3. ClrHome
  4. 0→T:0→U
  5. Lbl 0
  6. Menu(" GEOMETRY ","AREA",A,"VOLUME",B,"SURFACE AREA",C,"EXIT",CL
  7. Lbl CL
  8. ClrHome
  9. Stop
  10. Lbl A
  11. Menu(" AREA ","TRIANGLE",A1,"PARALLELOGRAM",A2,"TRAPEZOID",A3,"REGULAR GON",A4,"CIRCLE",A5,"ELLIPSE",A6,"",0
  12. Lbl B
  13. Menu(" VOLUME ","PRISM",B1,"PYRAMID",B2,"CYLINDER",B3,"CONE",B4,"SPHERE",B5,"FRUSTUM",B6,"",0
  14. Lbl C
  15. Menu(" SURFACE AREA ","CUBE",C1,"RECTANGULAR",C2,"CYLINDER",C3,"CONE",C4,"SPHERE",C5,"",0
  16.  
  17. Lbl A1
  18. Disp "A=BH/2
  19. Prompt B,H
  20. BH/2→Z
  21. Goto ST
  22. Lbl A2
  23. Disp "A=BH
  24. Prompt B,H
  25. BH→Z
  26. Goto ST
  27. Lbl A3
  28. Disp "A=(B₁+B₂)H/2
  29. Input "B₁=",A
  30. Input "B₂=",B
  31. Input "H=",H
  32. (A+B)H/2→Z:1→T
  33. Goto ST
  34. Lbl A4
  35. Degree
  36. Disp " POLYGON AREA
  37. Input "SIDES=",A
  38. Input "LENGTH=",B
  39. AB²/(4tan(180/A))→Z
  40. Goto ST
  41. Lbl A5
  42. Disp "A=πR²
  43. Prompt R
  44. πR²→Z:­1→T
  45. Goto SU
  46. Lbl A6
  47. Disp "A=πab
  48. Input "a=",A
  49. Input "b=",B
  50. πAB→Z
  51. Goto SU
  52. Lbl B1
  53. Disp "V=LWH
  54. Prompt L,W,H
  55. LWH→Z:1→T
  56. Goto ST
  57. Lbl B2
  58. Disp "V=BH/3
  59. Prompt B,H
  60. BH/3→Z
  61. Goto ST
  62. Lbl B3
  63. Disp "V=πR²H
  64. Prompt R,H
  65. πR²H→Z
  66. Goto SU
  67. Lbl B4
  68. Disp "V=πR²H/3
  69. Prompt R,H
  70. πR²H/3→Z
  71. Goto SU
  72. Lbl B5
  73. Disp "V=4/3πR
  74. Prompt R
  75. 4/3πR²→Z:­1→T
  76. Goto SU
  77. Lbl B6
  78. Disp "V=π(r²+rR+R²)H/3
  79. Input "r=",Q
  80. Input "R=",R
  81. Input "H=",H
  82. π(Q²+QR+R²)H/3→Z:1→T
  83. Goto SU
  84. Lbl C1
  85. Disp "SA=6S²
  86. Prompt S
  87. 6S²→Z:­1→T
  88. Goto ST
  89. Lbl C2
  90. Disp "SA=2(LW+WH+LH)
  91. Prompt L,W,H
  92. 2(LW+WH+LH→Z:1→T
  93. Goto ST
  94. Lbl C3
  95. Disp "2πR(H+R)
  96. Prompt R,H
  97. 2πR(H+R→Z
  98. Goto SU
  99. Lbl C4
  100. Disp "πR√(H²+R²)+πR²
  101. Prompt R,H
  102. πR√(H²+R²)+πR²→Z
  103. Goto SU
  104. Lbl C5
  105. Disp "4πR²
  106. Prompt R
  107. 4πR²→Z:­1→T
  108. Goto SU
  109. Lbl SU
  110. Z/π→Z:1→U
  111. Lbl ST
  112. Z→X
  113. abs(Ans→Y
  114. Ans→V
  115. While Ans-round(Ans,0)
  116. 1/fPart(Y→Y
  117. conj(V+imag(Vint(Ans→V
  118. imag(Ans
  119. End
  120. abs(round({Ans,Ans/X→⌊A
  121. ⌊A(1→E
  122. ⌊A(2→F
  123.  
  124.  
  125. 1+int(log(E→A
  126. 1+int(log(F→B
  127. Disp " "
  128. If U=1
  129. Output(4+T,26,"π
  130. If (E≥0 and F=1)
  131. Output(4+T,27-A-U,E
  132. If U=1
  133. Disp Zπ
  134. If E≥1 and F>1
  135. Then
  136. Output(4+T,27-A-B-U-1,E
  137. Output(4+T,27-B-U-1,"/
  138. Output(4+T,27-B-U,F
  139. If U=0
  140. Disp Z
  141. End
  142. Pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement