home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 7
/
007.d81
/
grapher
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
64 lines
0 gosub500
1 poke 53280,0:poke 53281,0
5 dim d(15):print""
10 printchr$(147)
20 input "[197]nter name of table";a$
30 input "[211]tep between the 10 horizontal lines";b
35 input "[200]ow many subjects on x axis(15)";f
36 if f>15 then goto 35
37 for v =1 to f
38 print "[197]nter amount";v;"(limit";b*10;")";:input"";d(v)
39 if d(v) > 10*b then goto 38
40 next v:poke 53280,0:poke 53281,0
45 printchr$(142)
50 print "[147][154] ";a$
70 for x = 1 to 10
80 print" [207][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][208] ";
90 print" [180] [170] ";
110 next x
120 print" /[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][206]";
125 print" [163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][145]";
130 print"[145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145]"
140 for x = 10 to 0step-.5:print x;"";
150 next x
160 print"[145]";"[158]"; :for x = 1 to f
165 if d(x)= 0 then print "[169][146][169][157]";:goto 180
170 print"";:forg=1to(d(x)*2)/b:print" [145][157]";:nextg
171 print"[169][146][169][157]";"";
173 if d(x) <b then print "[145]";
174 forg=(d(x)*2)/bto2step-1:print" [157]";
175 next g
180 print"";
190 next x:print
195 print" <press a key>"
220 poke198,0:wait198,1:printchr$(14)"[147] [215]ould you like to do another?";
222 poke198,0:wait198,1:geta$:ifa$="y"then10
230 goto63000
500 rem intro
501 printchr$(14)
510 print"[147][144]":poke53281,5:poke53280,6
520 print"[147] [212]om's [207]utstanding [199]rapher"
530 print:printspc(18)"by"
535 print:printspc(13)"[212]ommy [211]affle"
540 poke783,peek(783)and254
550 poke781,23:poke782,13:sys65520
560 print"<press a key>"
570 poke198,0:wait198,1:geta$
580 print"[147] [212]his program is designed to create":print
590 print"a bar-type graph from the data which ":print
600 print"you input.":print
610 print" [217]ou can title your graph and determine"
620 print"what the 'unit' is.":print:print
630 print" [193]fter input of your data, the program":print
640 print"will draw a graph of that input."
650 poke783,peek(783)and254
660 poke781,23:poke782,13:sys65520
670 print"<press a key>"
680 poke198,0:wait198,1:geta$
690 return
9999 end
60000 :
63000 rem connect back
63002 print"[147]load"chr$(34)"payload"chr$(34)",8":print"run"
63004 poke198,0:poke631,13:poke632,13:poke198,2:end