View difference between Paste ID: S8LmPZj6 and HGydSpyG
SHOW: | | - or go back to the newest paste.
1
:Program ZZCHEM
2
:While 1
3
:¦ ClrDraw
4
:¦ "MADE BY AES SEDIA5→Str0
5
:¦ "CEMETECH.NET→Str9
6
:¦ Text(1,31,"CHEMISTRY
7
:¦ Text(7,1,"1.CONVERT TEMPERATURES
8
:¦ Text(13,1,"2.SOLVE GAS LAWS
9
:¦ Text(19,1,"4.EXIT
10
:¦ Text(49,1,Str0
11
:¦ Text(55,1,Str9
12
:¦ Repeat K
13
:¦ ¦ getKey→K
14
:¦ End
15
:¦ If K=82
16
:¦ Then
17
:¦ ¦ ClrDraw
18
:¦ ¦ Text(1,13,"THANKS FOR USING
19
:¦ ¦ Text(13,31,"CEMISTRY
20
:¦ ¦ Text(25,13,"FROM THE FIVE 
21
:¦ ¦ Text(37,13,"PACK OF MATH
22
:¦ ¦ Text(49,1,Str0
23
:¦ ¦ Text(55,1,Str9
24
:¦ ¦ rand(100
25
:¦ ¦ ClrDraw
26
:¦ ¦ Disp 
27
:¦ ¦ Return
28
:¦ End
29
:¦ If K=92
30
:¦ Then
31
:¦ ¦ Lbl T
32
:¦ ¦ "CELCIUS"→Str1
33
:¦ ¦ "FAHRENHEIT"→Str2
34
:¦ ¦ "KELVIN"→Str3
35
:¦ ¦ ClrHome
36
:¦ ¦ ClrDraw
37
:¦ ¦ Input Str1,C
38
:¦ ¦ Input Str2,F
39
:¦ ¦ Input Str3,K
40
:¦ ¦ Repeat CFK
41
:¦ ¦ ¦ If Knot(C
42
:¦ ¦ ¦ K-273.15→C
43
:¦ ¦ ¦ If Fnot(C
44
:¦ ¦ ¦ 5(F-32)/9→C
45
:¦ ¦ ¦ If Knot(F
46
:¦ ¦ ¦ Then
47
:¦ ¦ ¦ ¦ K-273.15→C
48
:¦ ¦ ¦ ¦ C9(C+32)/5→F
49
:¦ ¦ ¦ End
50
:¦ ¦ ¦ If Knot(F
51
:¦ ¦ ¦ 9(C+32)/5→F
52
:¦ ¦ ¦ If Cnot(K
53
:¦ ¦ ¦ C+273.15→K
54
:¦ ¦ ¦ If Fnot(K
55
:¦ ¦ ¦ 5(F-32)/9→C
56
:¦ ¦ ¦ C+273.15→K
57
:¦ ¦ End
58
:¦ ¦ Disp Str1
59
:¦ ¦ Pause C
60
:¦ ¦ Disp Str2
61
:¦ ¦ Pause F
62
:¦ ¦ Disp Str3
63
:¦ ¦ Pause K
64
:¦ End
65
:¦ If K=93
66
:¦ Then
67
:¦ ¦ ClrHome
68
:¦ ¦ ClrDraw
69
:¦ ¦ Text(1,1,"SOLVE GAS LAWS
70
:¦ ¦ rand(50
71
:¦ ¦ ClrDraw
72
:¦ ¦ Text(1,1,"CHANGE TEMP TO KELVIN"
73
:¦ ¦ Text(25,1,"1.YES
74
:¦ ¦ Text(31,1,"0.NO
75
:¦ ¦ Text(49,1,Str0
76
:¦ ¦ Text(55,1,Str9
77
:¦ ¦ Repeat Ans
78
:¦ ¦ ¦ getKey
79
:¦ ¦ End
80
:¦ ¦ If Ans=92
81
:¦ ¦ Then
82
:¦ ¦ ¦ Goto T
83
:¦ ¦ End
84
:¦ ¦ If Ans=102
85
:¦ ¦ Then
86
:¦ ¦ ¦ ClrDraw
87
:¦ ¦ ¦ Text(1,1,"ARE YOU USING STANDARD"
88
:¦ ¦ ¦ Text(7,1,"TEMP AND PRESSURE"
89
:¦ ¦ ¦ Text(25,1,"1.YES
90
:¦ ¦ ¦ Text(37,1,"2.NO
91
:¦ ¦ ¦ Repeat J
92
:¦ ¦ ¦ ¦ getKey→J
93
:¦ ¦ ¦ End
94
:¦ ¦ ¦ If J=92
95
:¦ ¦ ¦ Then
96
:¦ ¦ ¦ ¦ Input "VOLUME",V
97
:¦ ¦ ¦ ¦ Input "TEMP IN KELVIN",T
98
:¦ ¦ ¦ ¦ Input "PRESSURE",P
99
:¦ ¦ ¦ ¦ If T>273
100
:¦ ¦ ¦ ¦ Then
101
:¦ ¦ ¦ ¦ ¦ T/273→A
102
:¦ ¦ ¦ ¦ ¦ Else
103
:¦ ¦ ¦ ¦ ¦ 273/T→B
104
:¦ ¦ ¦ ¦ End
105
:¦ ¦ ¦ ¦ If P>101.3
106
:¦ ¦ ¦ ¦ Then
107
:¦ ¦ ¦ ¦ ¦ 101.3/P→C
108
:¦ ¦ ¦ ¦ ¦ Else
109
:¦ ¦ ¦ ¦ ¦ P/101.3→D
110
:¦ ¦ ¦ ¦ End
111
:¦ ¦ ¦ ¦ If T>273 and P>101.3
112
:¦ ¦ ¦ ¦ VAC
113
:¦ ¦ ¦ ¦ If T>273 and P<101.3
114
:¦ ¦ ¦ ¦ VAD
115
:¦ ¦ ¦ ¦ If T<273 and P>101.3
116
:¦ ¦ ¦ ¦ VBC
117
:¦ ¦ ¦ ¦ If T<273 and P<101.3
118
:¦ ¦ ¦ ¦ VBD
119
:¦ ¦ ¦ ¦ Pause Ans
120
:¦ ¦ ¦ End
121
:¦ ¦ ¦ If J=102
122
:¦ ¦ ¦ Then
123
:¦ ¦ ¦ ¦ Input "VOLUME",V
124
:¦ ¦ ¦ ¦ Input "TEMP1",A
125
:¦ ¦ ¦ ¦ Input "TEMP2",B
126
:¦ ¦ ¦ ¦ Input "PRESSURE1",C
127
:¦ ¦ ¦ ¦ Input "PRESSURE2",D
128
:¦ ¦ ¦ ¦ If A≥B and C≥D
129
:¦ ¦ ¦ ¦ V(B/A)(C/D)
130
:¦ ¦ ¦ ¦ If B≥A and C≥D
131
:¦ ¦ ¦ ¦ V(A/B)(C/D)
132
:¦ ¦ ¦ ¦ If A≥B and D≥C
133
:¦ ¦ ¦ ¦ V(B/A)(D/C)
134
:¦ ¦ ¦ ¦ If B≥A and D≥C
135
:¦ ¦ ¦ ¦ V(A/B)(D/C)
136
:¦ ¦ ¦ ¦ Pause Ans
137
:¦ ¦ ¦ End
138
:¦ ¦ End
139
:¦ End
140-
:End
140+
:End
141
142