A pledge recorder for church or charity fund drives. For each pledge, enter an ID number, the amount and the kind: W for weekly, M for monthly, Q for quarterly, S for semi-annual or Y for yearly. The program lists each pledge with its yearly value. Enter a negative ID to finish; the program then prints the number of pledges, the total and the average yearly pledge.
ID numbers keep the contributors’ names private from the person entering the data. A pledge of 0 is listed but not counted in the totals. Edit lines 10 to 40 to put your own organization’s name and year in the heading.
Published in Syntax March 1983 (Pledge Keeper).
Source Code
1 REM KEEPING TRACK OF PLEDGES
2 REM BY R.M. DEMUNBRUN
3 REM INPUT ID NO.,PLEDGE,KIND(W FOR WEEKLY-M FOR MONTHLY-Q FOR QUARTERLY-S FOR SEMI-ANNUAL-Y FOR YEARLY.
4 REM TO GET TOTALS AND AVERAGES INPUT NEGATIVE NUMBER FOR ID
10 PRINT TAB 10;"FIRST UNITED"
20 PRINT TAB 12;"CHURCH"
30 PRINT TAB 9;"PLEDGES FOR"
40 PRINT TAB 13;"1983"
42 PRINT
45 PRINT "ID";TAB 5;"PLEDGE";TAB 14;"KIND";TAB 20;"YEARLY"
50 LET N=0
60 LET T=0
70 INPUT I
80 IF I<0 THEN GOTO 840
90 INPUT P
100 IF P=0 THEN GOTO 550
110 LET N=N+1
120 INPUT A$
130 IF A$="W" THEN GOTO 600
140 IF A$="M" THEN GOTO 650
150 IF A$="Q" THEN GOTO 700
160 IF A$="S" THEN GOTO 750
170 IF A$="Y" THEN GOTO 800
550 PRINT I;TAB 20;P
560 GOTO 70
600 LET A=52*P
610 PRINT I;TAB 5;P;TAB 14;A$;TAB 20;A
620 LET T=T+A
630 GOTO 70
650 LET A=12*P
660 PRINT I;TAB 5;P;TAB 14;A$;TAB 20;A
670 LET T=T+A
680 GOTO 70
700 LET A=4*P
710 PRINT I;TAB 5;P;TAB 14;A$;TAB 20;A
720 LET T=T+A
730 GOTO 70
750 LET A=2*P
760 PRINT I;TAB 5;P;TAB 14;A$;TAB 20;A
770 LET T=T+A
780 GOTO 70
800 LET A=1*P
810 PRINT I;TAB 5;P;TAB 14;A$;TAB 20;A
820 LET T=T+A
830 GOTO 70
840 PRINT
850 PRINT "NO. PLEDGES";TAB 13;N
860 PRINT "TOT PLEDGES";TAB 12;"$";TAB 13;T
870 LET V=(INT ((T/N)*100))/100
880 PRINT "AV PLEDGE";TAB 12;"$";TAB 13;V
890 STOPNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.

