home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Between Heaven & Hell 2
/
BetweenHeavenHell.cdr
/
100
/
31
/
alarm.bas
< prev
next >
Wrap
BASIC Source File
|
1983-03-21
|
1KB
|
46 lines
10 REM ALARM CLOCK PROGRAM FOR IBM-PC; BY: AL ZOLLER; MARCH 20, 1983
20 CLS: KEY OFF
30 LOCATE 12,30,0
40 PRINT "TIME","DATE"
50 LOCATE 14,30,0
60 PRINT TIME$,DATE$
70 LOCATE 16,30,0
80 PRINT "SET ALARM ? (Y/N)":PRINT
90 X$=INKEY$
100 IF X$="N" OR X$="n" THEN 420
110 IF X$="Y" OR X$="y" THEN 120 ELSE 50
120 LOCATE 16,26,0
130 PRINT "SET HH:MM:SS "
140 PRINT:PRINT TAB(28);
150 INPUT T$
160 CLS
170 B$=TIME$
180 IF B$=T$ THEN 260
190 LOCATE 12,30,0
200 PRINT "TIME","DATE"
210 LOCATE 14,30,0
220 PRINT TIME$,DATE$
230 LOCATE 16,16,0
240 PRINT "ALARM SET FOR ";T$
250 GOTO 170
260 FOR I=440 TO 1000 STEP 5
270 SOUND I, .2
280 NEXT
290 FOR I=1000 TO 440 STEP -5
300 SOUND I, .2
310 NEXT
320 CLS
330 LOCATE 12,30,0
340 PRINT "TIME","DATE"
350 LOCATE 14,30,0
360 PRINT TIME$,DATE$
370 LOCATE 16,25,0
380 PRINT "PRESS ANY KEY TO RESET ALARM "
390 A$=INKEY$
400 IF A$<>"" THEN 410 ELSE 260
410 GOTO 20
420 CLS
430 END
5,0
380 PRINT "PRESS ANY KEY TO RESET ALARM "
390 A$=INK