home *** CD-ROM | disk | FTP | other *** search
- 10 ' CHECK.BAS - program to print a blank check on the screen and accept
- 20 ' the following information:
- 30 '
- 40 ' CHECKNO Numeric variable that contains the check number
- 50 ' CHECKDATE$ String variable with check date (mm/dd/yyyy)
- 60 ' CHECKPAIDTO$ String variable with name of check payor
- 70 ' CHECKAMOUNT Numeric variable that contains the check amount
- 80 ' CHECKMEMO$ String variable that contains the check memo field
- 90 '
- 100 ' First, clear screen and set up the check on the screen
- 110 ' Also open disk file (CHECKS.DAT) to add more checks...
- 120 OPEN "CHECKS.DAT" FOR APPEND AS #1
- 130 CLS
- 140 KEY OFF
- 150 LOCATE 25,1
- 160 PRINT "YOU ARE: Entering information about a check drawn on account...";
- 170 LOCATE 1,1
- 180 PRINT "*******************************************************************************"
- 190 PRINT "* *"
- 200 PRINT "* Dewey, Cheatem and Howe Check No: ______ *"
- 210 PRINT "* 123 Rook Boulevard Date: __/__/____ *"
- 220 PRINT "* Reed City, MI 49677 *"
- 230 PRINT "* *"
- 240 PRINT "* Pay to the order of: __________________________________________________ *"
- 250 PRINT "* *"
- 260 PRINT "* (Check Amount) : __________ *"
- 270 PRINT "* *"
- 280 PRINT "* Memo: __________________________________________________ *"
- 290 PRINT "* *"
- 300 PRINT "*******************************************************************************"
- 310 'Check printed on screen, now let's get information about the check
- 320 LOCATE 3,60
- 330 INPUT CHECKNO
- 340 IF CHECKNO = 0 THEN GOTO 570
- 350 LOCATE 3,60
- 360 PRINT " ";
- 370 LOCATE 4,56
- 380 INPUT CHECKDATE$
- 390 LOCATE 4,56
- 400 PRINT " ";
- 410 LOCATE 7,25
- 420 INPUT CHECKPAIDTO$
- 430 LOCATE 7,25
- 440 PRINT " ";
- 450 LOCATE 9,25
- 460 INPUT CHECKAMOUNT
- 470 LOCATE 9,25
- 480 PRINT " ";
- 490 LOCATE 11,10,0
- 500 INPUT CHECKMEMO$
- 510 LOCATE 11,10,0
- 520 PRINT " ";
- 530 'Information entered, let's print it out to disk now..."
- 540 PRINT #1, CHECKNO, CHECKDATE$, CHECKPAIDTO$, CHECKAMOUNT, CHECKMEMO
- 550 'Now go back to Line 110 to see if there are any more checks...
- 560 GOTO 130
- 570 'Done with checks, close files and end program...
- 580 CLOSE #1
- 590 END
- 600 ' End of program - CHECK.BAS 07/15/1990
- 610 ' With modifications from GWBT03 homework 08/15/1990
-
-