home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RBBS in a Box Volume 1 #3.1
/
RBBSIABOX31.cdr
/
pac4
/
order.bas
< prev
next >
Wrap
BASIC Source File
|
1984-09-30
|
3KB
|
60 lines
1 REM: This program will generate an order letter for ordering from Mail Order
2 REM: Suppliers. You will first have to enter your personal information where
3 REM: indicated for Name, Address, Credit Card Info, Etc.
4 REM:
5 CLS:LOCATE 10,25:PRINT "Mail Order Invoice Generator"
6 LOCATE 12,33:PRINT "Version 1.3"
7 FOR X=1 TO 2000:NEXT X
10 CLS:X=0
20 LINE INPUT "DATE --> ";D$
30 LINE INPUT "COMPANY NAME --> ";A$
40 LINE INPUT "COMPANY STREET ADDRESS --> ";B$
50 LINE INPUT "CITY AND STATE --> ";C$
60 CLS
70 INPUT "QUANTITY";Q(1,X)
80 IF Q(1,X)=0 THEN 140
90 LINE INPUT "DESCRIPTION (20 CHARS or Less) --> ";D$(1,X):D=LEN(D$(1,X)):IF D>20 THEN 90
100 INPUT "PRICE EACH";P(1,X)
110 T(1,X)=Q(1,X)*P(1,X)
120 X=X+1:N=X
130 GOTO 60
140 INPUT "SHIPPING COST";SH
150 INPUT "(1) CHECK OR (2) CHARGE";CC
160 CLS:X=0
162 PRINT "Position paper at Top-Of-Forms ";:COLOR 0,7:PRINT "Strike <ENTER> To Continue";:COLOR 7,0
164 I$=INKEY$:IF I$="" THEN 164
170 LPRINT TAB(50)D$
180 LPRINT TAB(5)A$
190 LPRINT TAB(5)B$
200 LPRINT TAB(5)C$
210 LPRINT:LPRINT:LPRINT TAB(5)"DEAR SIRS:":LPRINT:LPRINT
220 LPRINT TAB(5)"PLEASE SHIP THE ITEMS LISTED AS SOON AS POSSIBLE:":LPRINT
230 LPRINT
240 LPRINT " QUANTITY DESCRIPTION UNIT PRICE TOTAL PRICE"
250 LPRINT
260 F$=" ### \ \ $$####.## $$######.##"
270 FOR Z=1 TO N
280 LPRINT USING F$;Q(1,X);D$(1,X);P(1,X);T(1,X)
290 TT=TT+T(1,X)
300 X=X+1
310 NEXT Z
320 LPRINT TAB(54)"----------"
330 TP$="$$#####.##"
340 LPRINT TAB(42)"TOTAL ";:LPRINT USING TP$;TT
350 IF SH=0 THEN 390
360 LPRINT TAB(42)"SHIPPING ";:LPRINT USING TP$;SH
370 TS=TT+SH
380 LPRINT TAB(42)"GRAND TOTAL";:LPRINT USING TP$;TS
390 IF CC=2 THEN 480
400 LPRINT:LPRINT:LPRINT TAB(5)"I AM ENCLOSING A CHECK TO COVER THE AMOUNT."
410 LPRINT:LPRINT:LPRINT TAB(5)"THANK YOU"
420 LPRINT:LPRINT:LPRINT
430 LPRINT TAB(5) "YOUR NAME"
440 LPRINT TAB(5) "YOUR ADDRESS"
450 LPRINT TAB(5) "YOUR CITY AND STATE"
460 LPRINT TAB(5) "YOUR ZIP CODE"
470 END
480 LPRINT:LPRINT:LPRINT TAB(5)"CREDIT CARD TYPE AND NUMBER":'ADD YOUR PERSONAL INFO
490 LPRINT TAB(13)"EXP DATE OR BANK #":'ADD YOUR PERSONAL INFORMATION
500 GOTO41