home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1990-04-12 | 1.3 KB | 32 lines |
- 100 REM CONVERSION TABLES FOR CUBIC MEASURES
- 105 WIDTH 80
- 110 REM IBM BASIC
- 120 GOTO 170
- 130 PRINT STRING$(80,45):RETURN
- 140 CLS:FOR X=1 TO 10:PRINT:NEXT X:RETURN
- 150 PRINT:INPUT "Press >RETURN< (Q to quit) ",R$:IF R$="Q" OR R$="q" THEN 160 ELSE RETURN
- 160 GOSUB 140:GOSUB 130:PRINT TAB(38)"End.":GOSUB 130:RUN"FILES."
- 170 GOSUB 140:GOSUB 130
- 180 PRINT TAB(10)"This program consists of 2 subprograms that convert cubic measures"
- 190 GOSUB 130:GOSUB 150
- 200 GOSUB 140:PRINT TAB(10)"Menu:":GOSUB 130
- 210 PRINT 1,"Cubic inches versus cubic centimeters"
- 220 PRINT 2,"Cubic feet versus cubic meters":GOSUB 130
- 230 INPUT "Which? ",WHICH:GOSUB 140:ON WHICH GOTO 240,320
- 240 PRINT TAB(10)"Convert:":GOSUB 130
- 250 PRINT 1,"Cubic inches to cubic centimeters"
- 260 PRINT 2,"Cubic centimeters to cubic inches":GOSUB 130
- 270 INPUT "Which? ",WHICH:GOSUB 140:ON WHICH GOTO 280,300
- 280 INPUT "Number of cubic inches? ",CI:GOSUB 130:CC=CI*16.387
- 290 PRINT CI;" cubic inches = ";CC;" cubic centimeters.":GOSUB 130:GOSUB 150:GOTO 200
- 300 INPUT "Number of cubic centimeters? ",CC:GOSUB 130:CI=CC/16.387
- 310 PRINT CC;" cubic centimeters = ";CI;" cubic inches.":GOSUB 130:GOSUB 150:GOTO 200
- 320 PRINT TAB(10)"Convert:":GOSUB 130
- 330 PRINT 1,"Cubic feet to cubic meters"
- 340 PRINT 2,"Cubic meters to cubic feet":GOSUB 130
- 350 INPUT "Which? ",WHICH:GOSUB 140:ON WHICH GOTO 360,380
- 360 INPUT "Number of cubic feet? ",CF:GOSUB 130:CM=CF*0.02831
- 370 PRINT CF;" cubic feet = ";CM;" cubic meters.":GOSUB 130:GOSUB 150:GOTO 200
- 380 INPUT "Number of cubic meters? ",CM:GOSUB 130:CF=CM/0.02831
- 390 PRINT CM;" cubic meters = ";CF;" cubic feet.":GOSUB 130:GOSUB 150:GOTO 200
-