home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
basic
/
race2.arc
/
TRACK.BAS
< prev
Wrap
BASIC Source File
|
1987-07-05
|
580b
|
16 lines
10 'D. R. Racing program Filespec:TRACK.BAS
20 'Public domain, feel free to distribute and modify.
30 CLS:LOCATE 2,33:PRINT "Track Length Program."
40 LOCATE 4,30:PRINT "Make sure CAPS lock is on."
50 LOCATE 12,1:INPUT "Enter laptime in seconds";T
60 INPUT "Enter lapspeed in mph";S
70 LET L=(S*T)/3600
80 LOCATE 17,27:PRINT "The track length is";L;"miles."
90 LOCATE 20,34:PRINT "Again(Y/N)?"
100 Y$=INKEY$:IF Y$=" "THEN 90
110 IF Y$="Y"THEN CLS:GOTO 50
120 IF Y$="N"THEN 140
130 IF Y$<>"Y"OR Y$<>"N"THEN 90
140 CLS:LOCATE 12,32:PRINT "T h a n k Y o u!"
150 END