TITLE
This routine allows the user to input a title or message and automatically encases it in a border and places it in the center of the screen for a few seconds (change line 130 for a longer time). The screen will then clear and await the next mesasage to be entered.
The user is limited to 26 total characters including spaces and this program will RUN in 1K. Just press ENTER when you are finished.
10 INPUT A$
20 IF A$ = "" THEN STOP
30 DIM B$( LEN A$ + 6 )
40 FOR N = 1 TO LEN A$ + 6
50 LET B$ (N) = " inverse * "
60 NEXT N
70 PRINT AT 8,0;
80 PRINT TAB 13 - LEN A$/2 ; B$
90 PRINT TAB 13 - LEN A$/2 ;
" inverse * "; TAB 18 + LEN
A$/2 ; " inverse * "
100 PRINT TAB 13 - LEN A$/2 ;
" inverse * "; TAB 16 - LEN
A$/2; A$; TAB 18 + LEN A$/2 ;
" inverse * "
110 PRINT TAB 13 - LEN A$/2 ;
" inverse * "; TAB 18 +; LEN
A$/2 ; " inverse * "
120 PRINT TAB 13 - LEN A$/2 ; B$
130 PAUSE 200
140 CLS
150 GOTO10
HINT – Line 100 is the same as line 80. Line 110 is the same as line 70. Edit lines 70 and 80 and change the line numbers from 70 to 110 and from 80 to 100. The original lines will remain intact.
This is a routine I use to create the bordered titles I use for the articles in this magazine. I also use it for the mailing lables you see on the envelopes.
CHECKBOOK
Here is a simple program that you can use to balance your checkbook. It also is written in 1K and will keep a running balance, total debits and credits and display each entry in its proper column.
If an entry is a check or bank service charge, it is a debit. A check for the amount of 125.66 should be entered as:
D 125.66
A bank service charge of 6.40 should be entered as:
D 6.40 or D 6.4
A deposit or bank mistake in your favor (ha ha) is a credit and a deposit of 5000.00 (don’t we wish) would be entered as:
C 5000.00 or C 5000
The first prompt that appears on the screen asks you for your beginning balance. The next prompt and every one thereafter asks you for a credit or debit amount.
If you have no more to enter, just press enter and the last line totals the debits and credits.
The program is as follows:
10 LET TC = 0
20 LET TD = 0
30 INPUT EB
40 GOSUB 1000
50 INPUT B$
60 IF B$ = "" THEN GOTO 300
70 IF B$ (1) = "C" THEN GOTO 100
80 IF B$ (1) = "D" THEN GOTO 200
90 GOTO 50
100 LET EB = EB + VAL B$( 3 TO
LEN B$ )
110 SCROLL
120 PRINT TAB 10; B$( 3 TO LEN
B$); TAB 20; EB
130 LET TC = TC + VAL B$( 3 TO
LEN B$ )
140 GOTO 50
200 LET EB = EB - VAL B$( 3 TO
LEN B$ )
210 SCROLL
220 PRINT B$( 3 TO LEN B$);
TAB 20; EB
230 LET TD = TD + VAL B$( 3 TO
LEN B$ )
240 GOTO 50
300 SCROLL
310 SCROLL
320 PRINT TD; TAB 10; TC; TAB 20; EB
330 STOP
1000 SCROLL
1010 PRINT "DEBIT"; TAB 10; "CREDIT";
TAB 20; "BALANCE"
1020 SCROLL
1030 PRINT TAB 20; EB
1040 SCROLL
1050 RETURN
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.