home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib33b.dsk
/
WORKSHEETER.bas
< prev
Wrap
BASIC Source File
|
2023-02-26
|
7KB
|
151 lines
1 REM ***********************
2 REM * WORKSHEETER *
3 REM * ENERGY SQUEEZER *
4 REM * BY VERN L. MASTEL *
5 REM * COPYRIGHT (C) 1988 *
6 REM * MICROSPARC, INC *
7 REM * CONCORD, MA 01742 *
8 REM ***********************
20 FOR X = 1 TO 6:LA$ = LA$ + CHR$(95): NEXT
30 FOR X = 1 TO 34:LB$ = LB$ + CHR$(95): NEXT
40 HD$ = "HOME ENERGY ANALYSIS WORKSHEET":S$ = "SECTION"
50 TEXT : HOME : HTAB 15: PRINT "**********": VTAB 3: PRINT "THIS PROGRAM CREATES DATA ENTRY SHEETS"
60 PRINT : PRINT "FOR RECORDING ALL OF THE PHYSICAL DATA": PRINT
70 PRINT "NEEDED BY HOME ENERGY ANALYSIS PROGRAM"
80 POKE 32,4: PRINT : PRINT : PRINT "WHICH SLOT IS YOUR PRINTER IN ?": PRINT : PRINT "PRESS RETURN IF IN SLOT #1": PRINT : PRINT "ENTER SLOT NUMBER ====>";
90 GET A$: IF A$ = CHR$(13) THEN A$ = "1"
100 IF A$ <"1" OR A$ >"7" THEN PRINT CHR$(7);: GOTO 90
110 SL$ = "PR#" +A$
120 PRINT : PRINT CHR$(4);SL$: PRINT CHR$(9)"80N"
130 REM SINGLE AND DOUBLE PANE WINDOWS
140 FOR L = 1 TO 2
150 VTAB 2: POKE 36,25: PRINT HD$
160 PRINT : FOR X = 1 TO 3: READ PG,PG$,N
170 POKE 36,35: PRINT S$;" ";PG
180 PRINT : POKE 36,40 - INT( LEN(PG$)/2): PRINT PG$
190 PRINT : GOSUB 1440
200 POKE 36,8: PRINT "#";: POKE 36,16: PRINT "WINDOW";: POKE 36,26: PRINT "WINDOW";: POKE 36,48: PRINT "WINDOW LOCATION"
210 POKE 36,16: PRINT "HEIGHT";: POKE 36,26: PRINT "WIDTH";: POKE 36,48: PRINT " OR COMMENTS "
220 GOSUB 1440: PRINT : FOR X = 1 TO N
230 POKE 36,8: PRINT X;: POKE 36,16: PRINT LA$;: POKE 36,26: PRINT LA$;: POKE 36,38: PRINT LB$
240 NEXT : PRINT CHR$(12): NEXT L
250 REM RECT AND TRI WALL AREAS
260 FOR L = 1 TO 2
270 VTAB 2: POKE 36,25: PRINT HD$
280 PRINT : FOR X = 1 TO 3: READ PG,PG$,N
290 POKE 36,35: PRINT S$;" ";PG
300 PRINT : POKE 36,40 - INT( LEN(PG$)/2): PRINT PG$
310 PRINT : GOSUB 1440
320 POKE 36,8: PRINT "#";: POKE 36,16: PRINT " WALL ";: POKE 36,26: PRINT " WALL ";: POKE 36,48: PRINT " WALL LOCATION"
330 POKE 36,16: PRINT "HEIGHT";: POKE 36,26: PRINT "WIDTH ";: POKE 36,48: PRINT " OR COMMENTS "
340 GOSUB 1440: PRINT : FOR X = 1 TO N
350 POKE 36,8: PRINT X;: POKE 36,16: PRINT LA$;: POKE 36,26: PRINT LA$;: POKE 36,38: PRINT LB$
360 NEXT : PRINT CHR$(12): NEXT L
370 REM TRAPZ WALL AREAS
380 VTAB 2: POKE 36,25: PRINT HD$
390 PRINT : FOR X = 1 TO 3: READ PG,PG$,N
400 POKE 36,35: PRINT S$;" ";PG
410 PRINT : POKE 36,40 - INT( LEN(PG$)/2): PRINT PG$
420 PRINT : GOSUB 1440
430 POKE 36,8: PRINT "#";: POKE 36,16: PRINT "BASE#1";: POKE 36,26: PRINT "BASE#2";: POKE 36,36: PRINT " AREA ";: POKE 36,54: PRINT " AREA LOCATION"
440 POKE 36,16: PRINT "LENGTH";: POKE 36,26: PRINT "LENGTH";: POKE 36,36: PRINT "HEIGHT";: POKE 36,54: PRINT " OR COMMENTS "
450 GOSUB 1440: PRINT
460 FOR X = 1 TO N
470 POKE 36,8: PRINT X;: POKE 36,16: PRINT LA$;: POKE 36,26: PRINT LA$;: POKE 36,36: PRINT LA$;: POKE 36,48: PRINT LEFT$(LB$,30)
480 NEXT
490 REM RECT CEILING AREAS
500 PRINT : PRINT
510 PRINT : FOR X = 1 TO 3: READ PG,PG$,N
520 POKE 36,35: PRINT S$;" ";PG
530 PRINT : POKE 36,40 - INT( LEN(PG$)/2): PRINT PG$
540 PRINT : GOSUB 1440
550 POKE 36,8: PRINT "#";: POKE 36,16: PRINT " AREA ";: POKE 36,26: PRINT " AREA ";: POKE 36,48: PRINT " AREA LOCATION"
560 POKE 36,16: PRINT "LENGTH";: POKE 36,26: PRINT "WIDTH";: POKE 36,48: PRINT " OR COMMENTS "
570 GOSUB 1440: PRINT : FOR X = 1 TO N
580 POKE 36,8: PRINT X;: POKE 36,16: PRINT LA$;: POKE 36,26: PRINT LA$;: POKE 36,38: PRINT LB$
590 NEXT : PRINT CHR$(12)
600 REM DOOR AREA
610 VTAB 2: POKE 36,25: PRINT HD$
620 PRINT : FOR X = 1 TO 3: READ PG,PG$,N
630 POKE 36,35: PRINT S$;" ";PG
640 PRINT : POKE 36,40 - INT( LEN(PG$)/2): PRINT PG$
650 PRINT : GOSUB 1440
660 POKE 36,8: PRINT "#";: POKE 36,16: PRINT " DOOR ";: POKE 36,26: PRINT " DOOR ";: POKE 36,48: PRINT " DOOR LOCATION"
670 POKE 36,16: PRINT "HEIGHT";: POKE 36,26: PRINT "WIDTH ";: POKE 36,48: PRINT " OR COMMENTS "
680 GOSUB 1440: PRINT
690 FOR X = 1 TO N
700 POKE 36,8: PRINT X;: POKE 36,16: PRINT LA$;: POKE 36,26: PRINT LA$;: POKE 36,38: PRINT LB$
710 NEXT
720 REM OTHER WALL AREAS
730 PRINT
740 PRINT : FOR X = 1 TO 3: READ PG,PG$,N
750 POKE 36,35: PRINT S$;" ";PG
760 PRINT : POKE 36,40 - INT( LEN(PG$)/2): PRINT PG$
770 PRINT : GOSUB 1440
780 POKE 36,8: PRINT "#";: POKE 36,16: PRINT " AREA ";: POKE 36,26: PRINT " AREA ";: POKE 36,48: PRINT " AREA LOCATION"
790 POKE 36,16: PRINT "WIDTH ";: POKE 36,26: PRINT "HEIGHT";: POKE 36,48: PRINT " OR COMMENTS "
800 GOSUB 1440: PRINT : PRINT
810 REM OTHER CEILING AREAS
820 PRINT
830 PRINT : FOR X = 1 TO 3: READ PG,PG$,N
840 POKE 36,35: PRINT S$;" ";PG
850 PRINT : POKE 36,40 - INT( LEN(PG$)/2): PRINT PG$
860 PRINT : GOSUB 1440
870 POKE 36,8: PRINT "#";: POKE 36,16: PRINT " AREA ";: POKE 36,26: PRINT " AREA ";: POKE 36,48: PRINT " AREA LOCATION"
880 POKE 36,16: PRINT "WIDTH";: POKE 36,26: PRINT "LENGTH";: POKE 36,48: PRINT " OR COMMENTS "
890 GOSUB 1440: PRINT CHR$(12)
900 REM INSULATION TABLE
910 VTAB 2: POKE 36,25: PRINT HD$
920 PRINT : POKE 36,34: PRINT S$;" 10"
930 PRINT : POKE 36,26: PRINT "BATT/BLANKET INSULATION"
940 PRINT : GOSUB 1440
950 POKE 36,12: PRINT "THICKNESS IN INCHES";: POKE 36,63: PRINT "USED IN": PRINT
960 PRINT "FIBREGLASS";: POKE 36,15: PRINT "ROCK WOOL";: POKE 36,30: PRINT "CELLULOSE";: POKE 36,45: PRINT " R VALUE";: POKE 36,60: PRINT "WALL";: POKE 36,68: PRINT "CEILING"
970 GOSUB 1440: FOR Z = 1 TO 12: READ R,A$,B$,C$
980 POKE 36,3: PRINT A$;: POKE 36,18: PRINT B$;: POKE 36,33: PRINT C$;: POKE 36,50: PRINT R;: POKE 36,60: PRINT LEFT$(LA$,5);: POKE 36,69: PRINT LEFT$(LA$,5)
990 NEXT : PRINT : GOSUB 1440: GOSUB 1440
1000 PRINT : POKE 36,28: PRINT "LOOSE FILL INSULATION"
1010 PRINT : GOSUB 1440
1020 POKE 36,12: PRINT "THICKNESS IN INCHES";: POKE 36,62: PRINT "USED IN": PRINT
1030 PRINT "FIBREGLASS";: POKE 36,15: PRINT "ROCK WOOL";: POKE 36,30: PRINT "CELLULOSE";: POKE 36,45: PRINT " R VALUE";: POKE 36,60: PRINT "WALL";: POKE 36,68: PRINT "CEILING"
1040 GOSUB 1440
1050 FOR Z = 1 TO 12: READ R,A$,B$,C$
1060 POKE 36,3: PRINT A$;: POKE 36,18: PRINT B$;: POKE 36,33: PRINT C$;: POKE 36,50: PRINT R;: POKE 36,60: PRINT LEFT$(LA$,5);: POKE 36,69: PRINT LEFT$(LA$,5)
1070 NEXT : GOSUB 1440
1080 PRINT : PRINT : PRINT "ANNUAL HEATING COST =======>";: PRINT LB$
1090 PRINT : PRINT : GOSUB 1440: PRINT CHR$(12)
1100 PRINT CHR$(4)"PR#0": END
1110 DATA 1,DOUBLE-PANE WINDOWS,36
1120 DATA 2,SINGLE-PANE WINDOWS,36
1130 DATA 3,RECTANGULAR WALL AREAS,24
1140 DATA 4,TRIANGULAR WALL AREAS,24
1150 DATA 5,TRAPEZOIDAL WALL AREAS,12
1160 DATA 6,RECTANGULAR CEILING AREAS,24
1170 DATA 7,DOORS,12
1180 DATA 8,OTHER CEILING AREAS,1
1190 DATA 9,OTHER WALL AREAS,1
1200 DATA 4,NO,WALL,INSULATION
1210 DATA 6,NO,CEILING,INSULATION
1220 DATA 9,2,1.5-2,N/A
1230 DATA 11,3.5-4,3,N/A
1240 DATA 13,4,4.5,N/A
1250 DATA 19,5.5-6,5.5,N/A
1260 DATA 22,6.5,6,N/A
1270 DATA 26,8,8.5,N/A
1280 DATA 30,9.5-10,9,N/A
1290 DATA 33,11,10,N/A
1300 DATA 38,12-13,10.5,N/A
1310 DATA 44,14,11.5,N/A
1320 DATA 4,NO,WALL,INSULATION
1330 DATA 6,NO,CEILING,INSULATION
1340 DATA 9,3,2-2.5,1.5-2
1350 DATA 11,5,4,3
1360 DATA 13,6,4.5,3.5
1370 DATA 19,8-9,6-7,5
1380 DATA 22,10,7-8,6
1390 DATA 26,12,9,7-7.5
1400 DATA 30,13-14,10-11,8
1410 DATA 33,15,11-12,9
1420 DATA 38,17-18,13-14,10-11
1430 DATA 44,19-24,14-16,11-13
1440 FOR X = 1 TO 79: PRINT "-";: NEXT : PRINT : RETURN