Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :Program ZZVOLUM
- :While 1
- :¦ "VOLUME"→Str1
- :¦ "SURFACE AREA"→Str4
- :¦ "INPUT ZERO 4 UKNOWN"→Str2
- :¦ "RADIUS"→Str3
- :¦ "LENGTH"→Str5
- :¦ "HEIGHT"→Str6
- :¦ "WIDTH"→Str7
- :¦ "SIDE"→Str9
- :¦ "BASE"→Str0
- :¦ DelVar KDelVar J
- :¦ 0
- :¦ ClrHome
- :¦ ClrDraw
- :¦ Text(1,1,"AREA AND VOLUME AND SURFACE AREAS
- :¦ Text(7,1,"1.FIND FOR ARC-LENGTH
- :¦ Text(13,1,"2.FIND FOR CIRCLE
- :¦ Text(19,1,"3.RIGHT CIRCLE CONE
- :¦ Text(25,1,"4.RIGHT CIRCLE CYLINDER
- :¦ Text(31,1,"5.FIND FOR RECTANGLE PRISM
- :¦ Text(37,1,"6.FIND FOR RIGHT PYRAMID
- :¦ Text(43,1,"7.MORE SHAPES
- :¦ Text(49,1,"8.EXIT
- :¦ Text(55,1,"MADE BY AES SEDIA5 CEMETECH.NET
- :¦ Repeat K
- :¦ ¦ getKey→K
- :¦ End
- :¦ If K=73
- :¦ Then
- :¦ ¦ Lbl XX
- :¦ ¦ ClrDraw
- :¦ ¦ Text(1,1,"THANKS FOR USING
- :¦ ¦ Text(13,1,"VOLUMES FROM THE
- :¦ ¦ Text(25,1,"FIVE PACK OF MATH
- :¦ ¦ Text(49,1,"MADE BY AES SEDIA5
- :¦ ¦ Text(55,1,"CEMETECH.NET
- :¦ ¦ rand(100
- :¦ ¦ ClrDraw
- :¦ ¦ Return
- :¦ End
- :¦ If K=92
- :¦ Then
- :¦ ¦ Disp Str2
- :¦ ¦ Input "DEGREE OF WEDGE",θ
- :¦ ¦ Input Str3,R
- :¦ ¦ Input "ARC LENGTH",V
- :¦ ¦ Repeat VRθ
- :¦ ¦ ¦ If not(V
- :¦ ¦ ¦ θπR/360→V
- :¦ ¦ ¦ If not(θ
- :¦ ¦ ¦ πR-V/360→θ
- :¦ ¦ ¦ If not(R
- :¦ ¦ ¦ θπ-V/360→R
- :¦ ¦ End
- :¦ ¦ Disp "DEGREE OF ARC
- :¦ ¦ Pause θ
- :¦ ¦ Disp "ARC LENGTH
- :¦ ¦ Pause V
- :¦ ¦ Disp Str3
- :¦ ¦ Pause R
- :¦ End
- :¦ If K=93
- :¦ Then
- :¦ ¦ Disp Str2
- :¦ ¦ Input Str3,R
- :¦ ¦ Input "AREA",A
- :¦ ¦ Input "CIRCUMFERENCE",C
- :¦ ¦ Repeat ACR
- :¦ ¦ ¦ If not(A
- :¦ ¦ ¦ πR2→A
- :¦ ¦ ¦ If not(C
- :¦ ¦ ¦ 2πR→C
- :¦ ¦ ¦ If not(R
- :¦ ¦ ¦ 2π-C→R
- :¦ ¦ End
- :¦ ¦ Disp "AREA
- :¦ ¦ Pause A
- :¦ ¦ Disp "CIRCUMFERENCE
- :¦ ¦ Pause C
- :¦ ¦ Disp Str3
- :¦ ¦ Pause R
- :¦ End
- :¦ If K=94
- :¦ Then
- :¦ ¦ Disp Str2
- :¦ ¦ Input Str3,R
- :¦ ¦ Input Str6,H
- :¦ ¦ Input Str4,S
- :¦ ¦ Input Str1,V
- :¦ ¦ Repeat VSRH
- :¦ ¦ ¦ If not(V
- :¦ ¦ ¦ πR^2/3→V
- :¦ ¦ ¦ If not(S
- :¦ ¦ ¦ πR^2+2πRH→S
- :¦ ¦ ¦ If not(R
- :¦ ¦ ¦ √(π-V/3→R:
- :¦ ¦ ¦ If not(H
- :¦ ¦ ¦ 2πR^2+2πR-S→H
- :¦ ¦ End
- :¦ ¦ Disp Str1
- :¦ ¦ Pause V
- :¦ ¦ Disp Str3
- :¦ ¦ Pause R
- :¦ ¦ Disp Str4
- :¦ ¦ Pause S
- :¦ ¦ Disp Str6
- :¦ ¦ Pause H
- :¦ End
- :¦ If K=82
- :¦ Then
- :¦ ¦ Disp Str2
- :¦ ¦ Input Str3,R
- :¦ ¦ Input Str6,H
- :¦ ¦ Input Str1,V
- :¦ ¦ Input Str4,S
- :¦ ¦ Repeat SVHR
- :¦ ¦ ¦ If not(V
- :¦ ¦ ¦ πR2H→V
- :¦ ¦ ¦ If not(S
- :¦ ¦ ¦ 2πR^2+2πRH→S
- :¦ ¦ ¦ If not(R) and S≠0
- :¦ ¦ ¦ -2πH+√(2πH)-(8π-4S)/(4π)→R
- :¦ ¦ ¦ If not(R) and V≠0
- :¦ ¦ ¦ √(πH-V→R
- :¦ ¦ ¦ If not(H
- :¦ ¦ ¦ πR2-V→H
- :¦ ¦ End
- :¦ ¦ Disp Str3
- :¦ ¦ Pause R
- :¦ ¦ Disp Str6
- :¦ ¦ Pause H
- :¦ ¦ Disp Str1
- :¦ ¦ Pause V
- :¦ ¦ Disp Str4
- :¦ ¦ Pause S
- :¦ End
- :¦ If K=83
- :¦ Then
- :¦ ¦ Disp Str2
- :¦ ¦ Input Str5,L
- :¦ ¦ Input Str7,W
- :¦ ¦ Input Str6,H
- :¦ ¦ Input Str1,V
- :¦ ¦ Input Str4,S
- :¦ ¦ Repeat LWHVS
- :¦ ¦ ¦ If not(V
- :¦ ¦ ¦ LHW→V
- :¦ ¦ ¦ If not(S
- :¦ ¦ ¦ 2LW+2WH+2HL→S
- :¦ ¦ ¦ If not(L) and not(S
- :¦ ¦ ¦ HW-V→L
- :¦ ¦ ¦ If not(V) and not(L
- :¦ ¦ ¦ (2W+2WH+2H-S)/2→L
- :¦ ¦ ¦ If not(W) and not(V
- :¦ ¦ ¦ (2L+2H+2HL)/2→W
- :¦ ¦ ¦ If not(H) and not(V
- :¦ ¦ ¦ (2LW+2W+2L-S)/2→H
- :¦ ¦ ¦ If not(H) and not(S
- :¦ ¦ ¦ LW-V→H
- :¦ ¦ ¦ If not(L) and not(S
- :¦ ¦ ¦ HW-V→L
- :¦ ¦ ¦ If not(W) and not(S
- :¦ ¦ ¦ LH-V→W
- :¦ ¦ End
- :¦ ¦ Disp Str5
- :¦ ¦ Pause L
- :¦ ¦ Disp Str6
- :¦ ¦ Pause H
- :¦ ¦ Disp Str7
- :¦ ¦ Pause W
- :¦ ¦ Disp Str1
- :¦ ¦ Pause V
- :¦ ¦ Disp Str4
- :¦ ¦ Pause S
- :¦ End
- :¦ If K=84
- :¦ Then
- :¦ ¦ Disp Str2
- :¦ ¦ Input Str0+" OF "+Str9,B
- :¦ ¦ Input Str6,H
- :¦ ¦ Input Str5+" OF "+Str0,L
- :¦ ¦ Input Str1,V
- :¦ ¦ Input Str4,S
- :¦ ¦ Repeat VSLHB
- :¦ ¦ ¦ If not(V
- :¦ ¦ ¦ πB^2H/3→V
- :¦ ¦ ¦ If not(S
- :¦ ¦ ¦ B^2+2BL→S
- :¦ ¦ ¦ If not(H) and not(S
- :¦ ¦ ¦ (π+B^2)/3-V→H
- :¦ ¦ ¦ If not(L) and not(V
- :¦ ¦ ¦ B^2+2B-S→L
- :¦ ¦ ¦ If not(L
- :¦ ¦ ¦ B^2+2B-S→L
- :¦ ¦ ¦ If not(B) and not(S
- :¦ ¦ ¦ √(πH/3-V→B
- :¦ ¦ ¦ If not(H) and not(S
- :¦ ¦ ¦ πB^2/3-V→H
- :¦ ¦ ¦ If not(H
- :¦ ¦ ¦ πB^2/3-V→H
- :¦ ¦ ¦ If not(B
- :¦ ¦ ¦ ‾2L+√(‾1-4(‾S))/2→B
- :¦ ¦ End
- :¦ ¦ Disp Str1
- :¦ ¦ Pause V
- :¦ ¦ Disp Str4
- :¦ ¦ Pause S
- :¦ ¦ Disp Str5
- :¦ ¦ Pause L
- :¦ ¦ Disp Str6
- :¦ ¦ Pause H
- :¦ ¦ Disp Str0+" OF "+Str9
- :¦ ¦ Pause B
- :¦ End
- :¦ If K=72
- :¦ Then
- :¦ ¦ ClrHome
- :¦ ¦ ClrDraw
- :¦ ¦ Text(1,1,"MORE SHAPES
- :¦ ¦ Text(7,1,"1.FIND FOR SPHERE
- :¦ ¦ Text(13,1,"2.FIND FOR TRAPEZOIDAL PRIZM
- :¦ ¦ Text(19,1,"3.SOLVE PYTHAGOREAN THEOREM
- :¦ ¦ Text(25,1,"4.SOLVE FOR TRIANGLES
- :¦ ¦ Text(31,1,"5.TO PREVIOUS MENU
- :¦ ¦ Text(37,1,"6.EXIT
- :¦ ¦ Text(49,1,"MADE BY AES SEDIA5
- :¦ ¦ Text(55,1,"CEMETECH.NET
- :¦ ¦ Repeat J
- :¦ ¦ ¦ getKey→J
- :¦ ¦ End
- :¦ End
- :¦ If J=84
- :¦ Goto XX
- :¦ If J=92
- :¦ Then
- :¦ ¦ Disp Str2
- :¦ ¦ Input Str3,R
- :¦ ¦ Input Str1,V
- :¦ ¦ Input Str4,S
- :¦ ¦ Repeat VRS
- :¦ ¦ ¦ If Rnot(V
- :¦ ¦ ¦ 4πR^3/3→V
- :¦ ¦ ¦ If not(S
- :¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ 4πR2→S
- :¦ ¦ ¦ End
- :¦ ¦ ¦ If not(R)not(V
- :¦ ¦ ¦ √(4π-S→R
- :¦ ¦ ¦ If not(R) and not(S
- :¦ ¦ ¦ √(4π/3-V→R
- :¦ ¦ End
- :¦ ¦ Disp Str1
- :¦ ¦ Pause V
- :¦ ¦ Disp Str4
- :¦ ¦ Pause S
- :¦ ¦ Disp Str3
- :¦ ¦ Pause R
- :¦ End
- :¦ If J=93
- :¦ Then
- :¦ ¦ 0→X
- :¦ ¦ Input Str0+"1",B
- :¦ ¦ Input Str0+"2",C
- :¦ ¦ Input Str6,H
- :¦ ¦ Input Str5,L
- :¦ ¦ Input "AREA",A
- :¦ ¦ Input Str1,V
- :¦ ¦ Input Str4,S
- :¦ ¦ Repeat ABCSVHL
- :¦ ¦ ¦ If Ans=10
- :¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ Disp "1 OF"+Str0+"1" OR "+Str0+"2","OR AREA OR VOLUME ","OR SURFACE AREA","HAVE TO EQUAL ≥1"
- :¦ ¦ ¦ ¦ Pause
- :¦ ¦ ¦ End
- :¦ ¦ ¦ If not(A
- :¦ ¦ ¦ .5(B+C)H→A
- :¦ ¦ ¦ If not(V
- :¦ ¦ ¦ .5(B+C)HL→V
- :¦ ¦ ¦ If not(S
- :¦ ¦ ¦ 2(.5H(B+C)+4L→S
- :¦ ¦ ¦ If not(H
- :¦ ¦ ¦ .5(C+B)-S→H
- :¦ ¦ ¦ 2(.5(B+C))+4L-S→H
- :¦ ¦ ¦ .5(C+B)L-V→H
- :¦ ¦ ¦ If not(B) and C≠0
- :¦ ¦ ¦ .5HC-A→B
- :¦ ¦ ¦ If not(C) and B≠0
- :¦ ¦ ¦ .5HB-A→C
- :¦ ¦ ¦ Ans+1
- :¦ ¦ End
- :¦ ¦ Disp "AREA
- :¦ ¦ Pause A
- :¦ ¦ Disp Str1
- :¦ ¦ Pause V
- :¦ ¦ Disp Str4
- :¦ ¦ Pause S
- :¦ ¦ Disp Str6
- :¦ ¦ Pause H
- :¦ ¦ Disp Str0+"1
- :¦ ¦ Pause B
- :¦ ¦ Disp Str0+"2
- :¦ ¦ Pause C
- :¦ End
- :¦ If J=94
- :¦ Then
- :¦ ¦ ClrDraw
- :¦ ¦ Text(1,1,"IS IT A RIGHT TRIANGLE
- :¦ ¦ Text(25,1,"1.YES
- :¦ ¦ Text(31,1,"2.NO
- :¦ ¦ Text(49,1,"MADE BY AES SEDIA5
- :¦ ¦ Text(55,1,"CEMETECH.NET
- :¦ ¦ Repeat Ans
- :¦ ¦ ¦ getKey
- :¦ ¦ End
- :¦ ¦ If Ans=93
- :¦ ¦ Then
- :¦ ¦ ¦ Disp "MUST BE ","RIGHT TRIANGLE
- :¦ ¦ ¦ rand(120
- :¦ ¦ End
- :¦ ¦ If Ans=92
- :¦ ¦ Then
- :¦ ¦ ¦ Disp " . "," . . C"," . . "," . . ","A. . "," ......."," B"
- :¦ ¦ ¦ Pause
- :¦ ¦ ¦ ClrDraw
- :¦ ¦ ¦ Text(1,1,"ENTER ZERO FOR THE SIDE
- :¦ ¦ ¦ Text(7,1,"YOUR FINDING
- :¦ ¦ ¦ rand(100
- :¦ ¦ ¦ Input Str9+"A",A
- :¦ ¦ ¦ Input Str9+"B",B
- :¦ ¦ ¦ Input Str9+"C",C
- :¦ ¦ ¦ If not(A
- :¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ ClrHome
- :¦ ¦ ¦ ¦ Disp Str9+" A
- :¦ ¦ ¦ ¦ Pause √(((C2-B2)
- :¦ ¦ ¦ End
- :¦ ¦ ¦ If not(B
- :¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ ClrHome
- :¦ ¦ ¦ ¦ Disp Str9+" B
- :¦ ¦ ¦ ¦ Pause √((C2-A2)
- :¦ ¦ ¦ End
- :¦ ¦ ¦ If not(C
- :¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ Disp Str9+" C
- :¦ ¦ ¦ ¦ Pause √((A2+B2)
- :¦ ¦ ¦ End
- :¦ ¦ End
- :¦ End
- :¦ If J=82
- :¦ Then
- :¦ ¦ ClrDraw
- :¦ ¦ Text(1,1,"WHAT DO YOU HAVE?
- :¦ ¦ Text(19,1,"1.ALL SIDES OF THE TRIANGLE
- :¦ ¦ Text(25,1,"2.LENGTH HEIGHT OF THE TRIANGLE"
- :¦ ¦ Text(31,1,"3.BACK
- :¦ ¦ Text(49,1,"MADE BY AES SEDIA5
- :¦ ¦ Text(55,1,"CEMETECH.NET
- :¦ ¦ Repeat Ans
- :¦ ¦ ¦ getKey
- :¦ ¦ End
- :¦ ¦ If Ans=92
- :¦ ¦ Then
- :¦ ¦ ¦ Prompt A
- :¦ ¦ ¦ Prompt B
- :¦ ¦ ¦ Prompt C
- :¦ ¦ ¦ (1/2)(A+B+C)
- :¦ ¦ ¦ Disp "AREA
- :¦ ¦ ¦ Pause √(Ans(Ans-A)(Ans-B)(Ans-C))
- :¦ ¦ End
- :¦ ¦ If Ans=93
- :¦ ¦ Then
- :¦ ¦ ¦ Input Str5,L
- :¦ ¦ ¦ Input Str6,H
- :¦ ¦ ¦ Input Str7,W
- :¦ ¦ ¦ Disp Str1
- :¦ ¦ ¦ Pause .5LHW
- :¦ ¦ End
- :¦ End
- :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement