SlideShare a Scribd company logo
1 of 1
300 CLS : KEY OFF : PRINT"Physics Lehrman page 142" :SCREEN 9
302 PRINT"The gauge of figure 7.4(calibrated to read absolute pressure) reads
1200 mb when the thermometer is in ice water and 1,750 mb when it is in the
other beaker.What is the temperature in the other beaker? temp in first beaker
273.15 k.ans.398 k."
305 INPUT"Input temp k. first beaker";K
307 INPUT"Input millibars first beaker";P1
310 INPUT"input millibars second beaker";P2
315 T = K/P1 * P2
316 C1 = K - 273.15 : F1 = (9/5) * C1 + 32
317 C2 = T - K       : F2 = (9/5) * C2 + 32
320 PRINT:PRINT K" K.                                                  "
T;"K."
321 PRINT:PRINT C1" C.      "
322 PRINT F1"F."
323 PRINT   "                                                         ";C2 "C."
324 PRINT   "                                                         ";F2 "F."
404 A$ = "bm50,240 d100r150u100d25l150"
406 B$ = "bm300,240 d100r150u100d25l150"
408 C$ = "bm100,310 f7r25e7u30h10u100d100f10d30g7l25h7u30e10u100"
410 D$ = "bm350,310 f7r25e7u30h10u100d100f10d30g7l25h7u30e10u100"
412 E$ = "bm65,275 u15r15d15l15"
414 F$ = "bm170,270 u15r15d15l15"
416 CIRCLE(120,160),40
418 PAINT(120,160),&H66
420 CIRCLE(365,160),40
422 PAINT(365,160),&H33
428 DRAW A$
430 DRAW B$
432 DRAW C$
434 DRAW D$
436 DRAW E$
438 DRAW F$

More Related Content

More from Donald Stevens (20)

Compton21
Compton21Compton21
Compton21
 
Doc2
Doc2Doc2
Doc2
 
Fluc7
Fluc7Fluc7
Fluc7
 
Fluc6
Fluc6Fluc6
Fluc6
 
Fluc5
Fluc5Fluc5
Fluc5
 
Fluc4
Fluc4Fluc4
Fluc4
 
Fluc3
Fluc3Fluc3
Fluc3
 
Fluc2
Fluc2Fluc2
Fluc2
 
Fluc1
Fluc1Fluc1
Fluc1
 
Stanley285
Stanley285Stanley285
Stanley285
 
Photomat3
Photomat3Photomat3
Photomat3
 
Stan363
Stan363Stan363
Stan363
 
Mat37
Mat37Mat37
Mat37
 
Mat27
Mat27Mat27
Mat27
 
Rome
RomeRome
Rome
 
Redshift
RedshiftRedshift
Redshift
 
Kentarus
KentarusKentarus
Kentarus
 
Hawking22
Hawking22Hawking22
Hawking22
 
Compton5
Compton5Compton5
Compton5
 
Bsquark
BsquarkBsquark
Bsquark
 

Beaker.bas

  • 1. 300 CLS : KEY OFF : PRINT"Physics Lehrman page 142" :SCREEN 9 302 PRINT"The gauge of figure 7.4(calibrated to read absolute pressure) reads 1200 mb when the thermometer is in ice water and 1,750 mb when it is in the other beaker.What is the temperature in the other beaker? temp in first beaker 273.15 k.ans.398 k." 305 INPUT"Input temp k. first beaker";K 307 INPUT"Input millibars first beaker";P1 310 INPUT"input millibars second beaker";P2 315 T = K/P1 * P2 316 C1 = K - 273.15 : F1 = (9/5) * C1 + 32 317 C2 = T - K : F2 = (9/5) * C2 + 32 320 PRINT:PRINT K" K. " T;"K." 321 PRINT:PRINT C1" C. " 322 PRINT F1"F." 323 PRINT " ";C2 "C." 324 PRINT " ";F2 "F." 404 A$ = "bm50,240 d100r150u100d25l150" 406 B$ = "bm300,240 d100r150u100d25l150" 408 C$ = "bm100,310 f7r25e7u30h10u100d100f10d30g7l25h7u30e10u100" 410 D$ = "bm350,310 f7r25e7u30h10u100d100f10d30g7l25h7u30e10u100" 412 E$ = "bm65,275 u15r15d15l15" 414 F$ = "bm170,270 u15r15d15l15" 416 CIRCLE(120,160),40 418 PAINT(120,160),&H66 420 CIRCLE(365,160),40 422 PAINT(365,160),&H33 428 DRAW A$ 430 DRAW B$ 432 DRAW C$ 434 DRAW D$ 436 DRAW E$ 438 DRAW F$