Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :Program ZZCHEM
- :While 1
- :¦ ClrDraw
- :¦ "MADE BY AES SEDIA5→Str0
- :¦ "CEMETECH.NET→Str9
- :¦ Text(1,31,"CHEMISTRY
- :¦ Text(7,1,"1.CONVERT TEMPERATURES
- :¦ Text(13,1,"2.SOLVE GAS LAWS
- :¦ Text(19,1,"4.EXIT
- :¦ Text(49,1,Str0
- :¦ Text(55,1,Str9
- :¦ Repeat K
- :¦ ¦ getKey→K
- :¦ End
- :¦ If K=82
- :¦ Then
- :¦ ¦ ClrDraw
- :¦ ¦ Text(1,13,"THANKS FOR USING
- :¦ ¦ Text(13,31,"CEMISTRY
- :¦ ¦ Text(25,13,"FROM THE FIVE
- :¦ ¦ Text(37,13,"PACK OF MATH
- :¦ ¦ Text(49,1,Str0
- :¦ ¦ Text(55,1,Str9
- :¦ ¦ rand(100
- :¦ ¦ ClrDraw
- :¦ ¦ Disp
- :¦ ¦ Return
- :¦ End
- :¦ If K=92
- :¦ Then
- :¦ ¦ Lbl T
- :¦ ¦ "CELCIUS"→Str1
- :¦ ¦ "FAHRENHEIT"→Str2
- :¦ ¦ "KELVIN"→Str3
- :¦ ¦ ClrHome
- :¦ ¦ ClrDraw
- :¦ ¦ Input Str1,C
- :¦ ¦ Input Str2,F
- :¦ ¦ Input Str3,K
- :¦ ¦ Repeat CFK
- :¦ ¦ ¦ If Knot(C
- :¦ ¦ ¦ K-273.15→C
- :¦ ¦ ¦ If Fnot(C
- :¦ ¦ ¦ 5(F-32)/9→C
- :¦ ¦ ¦ If Knot(F
- :¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ K-273.15→C
- :¦ ¦ ¦ ¦ C9(C+32)/5→F
- :¦ ¦ ¦ End
- :¦ ¦ ¦ If Knot(F
- :¦ ¦ ¦ 9(C+32)/5→F
- :¦ ¦ ¦ If Cnot(K
- :¦ ¦ ¦ C+273.15→K
- :¦ ¦ ¦ If Fnot(K
- :¦ ¦ ¦ 5(F-32)/9→C
- :¦ ¦ ¦ C+273.15→K
- :¦ ¦ End
- :¦ ¦ Disp Str1
- :¦ ¦ Pause C
- :¦ ¦ Disp Str2
- :¦ ¦ Pause F
- :¦ ¦ Disp Str3
- :¦ ¦ Pause K
- :¦ End
- :¦ If K=93
- :¦ Then
- :¦ ¦ ClrHome
- :¦ ¦ ClrDraw
- :¦ ¦ Text(1,1,"SOLVE GAS LAWS
- :¦ ¦ rand(50
- :¦ ¦ ClrDraw
- :¦ ¦ Text(1,1,"CHANGE TEMP TO KELVIN"
- :¦ ¦ Text(25,1,"1.YES
- :¦ ¦ Text(31,1,"0.NO
- :¦ ¦ Text(49,1,Str0
- :¦ ¦ Text(55,1,Str9
- :¦ ¦ Repeat Ans
- :¦ ¦ ¦ getKey
- :¦ ¦ End
- :¦ ¦ If Ans=92
- :¦ ¦ Goto T
- :¦ ¦ If Ans=102
- :¦ ¦ Then
- :¦ ¦ ¦ ClrDraw
- :¦ ¦ ¦ Text(1,1,"ARE YOU USING STANDARD"
- :¦ ¦ ¦ Text(7,1,"TEMP AND PRESSURE"
- :¦ ¦ ¦ Text(25,1,"1.YES
- :¦ ¦ ¦ Text(37,1,"2.NO
- :¦ ¦ ¦ Repeat J
- :¦ ¦ ¦ ¦ getKey→J
- :¦ ¦ ¦ End
- :¦ ¦ ¦ If J=92
- :¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ Input "VOLUME",V
- :¦ ¦ ¦ ¦ Input "TEMP IN KELVIN",T
- :¦ ¦ ¦ ¦ Input "PRESSURE",P
- :¦ ¦ ¦ ¦ If T>273
- :¦ ¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ ¦ T/273→A
- :¦ ¦ ¦ ¦ ¦ Else
- :¦ ¦ ¦ ¦ ¦ 273/T→B
- :¦ ¦ ¦ ¦ End
- :¦ ¦ ¦ ¦ If P>101.3
- :¦ ¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ ¦ 101.3/P→C
- :¦ ¦ ¦ ¦ ¦ Else
- :¦ ¦ ¦ ¦ ¦ P/101.3→D
- :¦ ¦ ¦ ¦ End
- :¦ ¦ ¦ ¦ If T>273 and P>101.3
- :¦ ¦ ¦ ¦ VAC
- :¦ ¦ ¦ ¦ If T>273 and P<101.3
- :¦ ¦ ¦ ¦ VAD
- :¦ ¦ ¦ ¦ If T<273 and P>101.3
- :¦ ¦ ¦ ¦ VBC
- :¦ ¦ ¦ ¦ If T<273 and P<101.3
- :¦ ¦ ¦ ¦ VBD
- :¦ ¦ ¦ ¦ Pause Ans
- :¦ ¦ ¦ End
- :¦ ¦ ¦ If J=102
- :¦ ¦ ¦ Then
- :¦ ¦ ¦ ¦ Input "VOLUME",V
- :¦ ¦ ¦ ¦ Input "TEMP1",A
- :¦ ¦ ¦ ¦ Input "TEMP2",B
- :¦ ¦ ¦ ¦ Input "PRESSURE1",C
- :¦ ¦ ¦ ¦ Input "PRESSURE2",D
- :¦ ¦ ¦ ¦ If A≥B and C≥D
- :¦ ¦ ¦ ¦ V(B/A)(C/D)
- :¦ ¦ ¦ ¦ If B≥A and C≥D
- :¦ ¦ ¦ ¦ V(A/B)(C/D)
- :¦ ¦ ¦ ¦ If A≥B and D≥C
- :¦ ¦ ¦ ¦ V(B/A)(D/C)
- :¦ ¦ ¦ ¦ If B≥A and D≥C
- :¦ ¦ ¦ ¦ V(A/B)(D/C)
- :¦ ¦ ¦ ¦ Pause Ans
- :¦ ¦ ¦ End
- :¦ ¦ End
- :¦ End
- :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement