Compucolor.org – Virtual Media

Listing of file='STATS.BAS;01' on disk='vmedia/execugraph_instructions-sector.ccvf'

14900 PLOT 6,2,12,15,29,3,9,13:PRINT "PLEASE NOTE THAT THE  DEMO GRAPHS HAVE BEEN REMOVED"
14910 PLOT 3,23,17:PRINT "BECAUSE OF LACK OF SPACE."
14920 PLOT 3,18,27:PRINT "PRESS RETURN TO CONTINUE"
14930 PLOT 3,46,27:INPUT "";T$
15000 PLOT 6,2,12,15,29,3,13,3:PRINT "STATISTICAL  MANUPULATOR  COMMANDS :-"
15010 PLOT 15,3,7,6:PRINT "1)  SMOOTH";SPC( 23);"8)  DIFFERENTIATE"
15020 PLOT 3,7,7:PRINT "2)  MOVING";SPC( 23);"9)  SUMMATION"
15030 PLOT 3,7,8:PRINT "3)  TREND";SPC( 23);"10)  LEAD"
15040 PLOT 3,7,9:PRINT "4)  ARITHMETIC";SPC( 18);"11)  LAG"
15050 PLOT 3,7,10:PRINT "5)  CONSTANT";SPC( 20);"12)  PERIOD"
15060 PLOT 3,7,11:PRINT "6)  BASELINE";SPC( 20);"13)  LOG"
15070 PLOT 3,7,12:PRINT "7)  INFLATION"SPC( 19);"14)  EXPONENTIAL"
15090 PLOT 3,5,18:PRINT "THE VARIOUS COMMANDS TAKE RAW DATA FROM THE 0 FILE,"
15100 PLOT 3,5,19:PRINT "PERFORMS SOME SORT OF MATHAMATICAL COMPUTATION  AND"
15110 PLOT 3,5,20:PRINT "RETURNS THE RESULTS TO THE 0 FILE.  SOME COMMANDS"
15120 PLOT 3,5,21:PRINT "ALSO PROCEED TO GRAPH THE RESULTS IN THE FORM OF A"
15130 PLOT 3,5,22:PRINT "LINE GRAPH.  OTHER TYPES OF GRAPHS CAN BE PRODUCED,"
15140 PLOT 3,5,23:PRINT "HOWEVER, WITH A LITTLE MORE DIFFICULTY."
15150 PLOT 3,17,27:PRINT "PRESS RETURN TO CONTINUE"
15160 PLOT 3,44,27:INPUT "";T$
15200 PLOT 6,2,12,15,29,3,18,3:PRINT "SMOOTH  COMMAND :-"
15210 PLOT 15,3,5,6:PRINT "THIS IS ONE OF THE MANIPULATOR COMMANDS THAT CAN"
15220 PLOT 3,5,7:PRINT "SMOOTH OUT DATA THAT IS ERATIC AND DIFFICULT TO SEE"
15230 PLOT 3,5,8:PRINT "ANY TRENDS.  A NUMBER BETWEEN 0.01 AND 1.0 MUST FOLLOW"
15240 PLOT 3,5,9:PRINT "THE COMMAND.  THE NUMBER, CALLED THE SMOOTHING COEFFICENT"
15250 PLOT 3,5,10:PRINT "CAUSES EXPONENTIAL SMOOTHING OF THE DATA, GIVING MORE"
15260 PLOT 3,5,11:PRINT "WEIGHT TO THE MOST RECENT DATA.  THE LOWER THE NUMBER"
15270 PLOT 3,5,12:PRINT "THE MORE THE SMOOTHING."
15280 PLOT 3,5,15:PRINT "IF YOU WANT THE SMOOTHED DATA TO APPEAR AS A DIFFERENT"
15290 PLOT 3,5,16:PRINT "GRAPH TO A LINE GRAPH THEN YOU WILL NEED TO FIRST CREATE"
15300 PLOT 3,5,17:PRINT "A LINE GRAPH, CLEAR THE SCREEN, THEN REGRAPH TO THE"
15310 PLOT 3,5,18:PRINT "FORMAT REQUIRED.  THIS IS ACHIEVED AS WE ARE ACCESSING"
15320 PLOT 3,5,19:PRINT "THE 0 FILE WHICH WOULD NOW HOLD THE DATA CREATING THE"
15330 PLOT 3,5,20:PRINT "SMOOTHED LINE GRAPH.  WE HAVE ENTERED THE FOLLOWING"
15340 PLOT 3,5,21:PRINT "COMMANDS TO GENERATE A SMOOTHED LINE GRAPH."
15350 PLOT 3,18,23:PRINT "SCA TOTSAL"
15360 PLOT 3,18,24:PRINT "COL (PRESS RED KEY)"
15370 PLOT 3,18,25:PRINT "SMOOTH 0.2"
15380 PLOT 3,16,29:PRINT "PRESS RETURN TO CONTINUE"
15390 PLOT 3,43,29:INPUT "";T$
15450 PLOT 12:GOTO 15800
15455 PLOT 3,15,15:PRINT "LOADING  EXAMPLE GRAPH"
15460 A$= "SMO1"
15470 PLOT 27,4
15480 PRINT "LDSCR "+ A$+ ".DSP 7000"
15490 PLOT 27,27
15500 PLOT 3,18,30:PRINT "PRESS RETURN TO CONTINUE"
15510 PLOT 3,47,30:INPUT "";T$
15560 PLOT 12
15565 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
15570 B$= "SMO2"
15580 PLOT 27,4
15590 PRINT "LDSCR "+ B$+ ".DSP 7000"
15600 PLOT 27,27
15610 PLOT 3,10,4:PRINT "WE HAVE ADDED THE COMMANDS"
15620 PLOT 3,10,5:PRINT "CLEAR, 2BAR 0 AND 2BAR TOTSAL"
15630 PLOT 3,10,6:PRINT "TO COMPARE THE ORIGINAL DATA WITH"
15640 PLOT 3,10,7:PRINT "SMOOTHED DATA IN BAR GRAPH FORMAT"
15700 PLOT 3,18,30:PRINT "PRESS RETURN TO CONTINUE"
15710 PLOT 3,47,30:INPUT "";T$
15800 PLOT 6,2,12,15,29,3,15,2:PRINT "MOVING AVERAGE  COMMAND :-"
15810 PLOT 3,5,5:PRINT "MOVING AVERAGES ARE AMONG THE MORE POPULAR ALGORITHMS."
15820 PLOT 3,5,6:PRINT "THEY ARE USEFUL IN ANALYZING SALES TRENDS, ETC., IN"
15830 PLOT 3,5,7:PRINT "BOTH THE SHORT AND LONG TERM.  THIS COMMAND REQUIRES"
15840 PLOT 3,5,8:PRINT "A NUMBER BETWEEN 1.0 AND THE TOTAL NUMBER OF DATA POINTS"
15850 PLOT 3,5,9:PRINT "HELD IN THE 0 FILE.  FOR EXAMPLE, IF WE WISHED TO PRODUCE"
15860 PLOT 3,5,10:PRINT "A GRAPH WHICH AVERAGED THE RESULTS OF FOUR DATA POINTS"
15870 PLOT 3,5,11:PRINT "WE WOULD ENTER MOV 4."
15880 PLOT 3,5,13:PRINT "MOVING AVERAGES GENERALLY TAKE THE AVERAGE OF THE MONTHS"
15890 PLOT 3,5,14:PRINT "PRIOR TO THE CURRENT MONTHS.  THUS THE FOUR MONTH MOVING"
15900 PLOT 3,5,15:PRINT "AVERAGE FOR JUNE 1980 WOULD BE THE SUM OF THE DATA FOR"
15910 PLOT 3,5,16:PRINT "MARCH, APRIL, MAY AND JUNE DIVIDED BY FOUR."
15920 PLOT 3,5,18:PRINT "THIS GRAPH IS PRODUCED BY ENTERING"
15930 PLOT 3,20,20:PRINT "SCA TOTSAL"
15940 PLOT 3,20,21:PRINT "COL (PRESS RED KEY)"
15950 PLOT 3,20,22:PRINT "MOV 4"
15960 PLOT 3,14,27:PRINT "PRESS RETURN TO CONTINUE"
15970 PLOT 3,40,27:INPUT "";T$
15980 PLOT 12:GOTO 16150
15990 C$= "MOV1"
15995 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
16000 PLOT 27,4
16010 PRINT "LDSCR "+ C$+ ".DSP 7000"
16020 PLOT 27,27
16100 PLOT 3,18,30:PRINT "PRESS RETURN TO CONTINUE"
16110 PLOT 3,47,30:INPUT "";T$
16150 PLOT 6,2,12,15,29,3,17,2:PRINT "TREND  COMMAND :-"
16160 PLOT 3,3,4:PRINT "THE TREND COMMAND CALCULATES THE BEST FITTING STRAIGHT"
16170 PLOT 3,3,5:PRINT "LINE APPROXIMATION FOR THE DATA IN THE 0 FILE.  IT IS"
16180 PLOT 3,3,6:PRINT "USEFUL TO SEE DIFFERENCES BETWEEN LONG AND SHORT TERM"
16190 PLOT 3,3,7:PRINT "TRENDS AS WELL AS COMPARING RESULTS TO SMOOTHED DATA."
16200 PLOT 3,3,8:PRINT "FOR EXAMPLE, IF THE SMOOTHED DATA STARTS FALLING"
16210 PLOT 3,3,9:PRINT "CONSISTENTLY BELOW THE LONG TERM TREND LINE THEN,"
16220 PLOT 3,3,10:PRINT "CERTAINLY THE SHORT TERM TREND IS HEADING DOWN WITH"
16230 PLOT 3,3,11:PRINT "RESPECT TO THE LONG TERM TREND."
16240 PLOT 3,3,13:PRINT "THE TREND COMMAND MAY BE FOLLOWED BY A SPACE THEN A DATE."
16250 PLOT 3,3,14:PRINT "THIS WILL CAUSE THE TREND LINE TO COMMENCE AT THE DATE"
16260 PLOT 3,3,15:PRINT "SPECIFIED.  TWO SUB COMMANDS ARE ATTACHED TO THE TREND"
16270 PLOT 3,3,16:PRINT "COMMAND.  THESE ARE LTREND AND ETREND, REPRESENTING A"
16280 PLOT 3,3,17:PRINT "TREND MATCHING A LOGARITHMIC CURVE AND AN EXPONENTIAL"
16290 PLOT 3,3,18:PRINT "CURVE RESPECTIVELY.  THESE ARE HELPFUL IF DATA STARTS OFF"
16300 PLOT 3,3,19:PRINT "STEEPLY AND THEN LEVELS OFF, OR FOR DATA THAT GROWS AT AN"
16310 PLOT 3,3,20:PRINT "EVER-INCREASING RATE."
16320 PLOT 3,3,22:PRINT "THE GRAPH FOLLOWING HAS BEEN CREATED WITH THE FOLLOWING"
16330 PLOT 3,3,23:PRINT "COMMANDS."
16340 PLOT 3,6,26:PRINT "SCA TOTSAL, SAVE 1, TREND, TITLE TOTAL TREND LINE,"
16350 PLOT 3,6,27:PRINT "LOAD 1, COL (RED), TREND 8/81, TITLE 12 MONTH TREND LINE"
16360 PLOT 3,13,30:PRINT "PRESS RETURN TO CONTINUE"
16370 PLOT 3,40,30:INPUT "";T$
16380 PLOT 12:GOTO 16500
16385 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
16390 D$= "TRE1"
16400 PLOT 27,4
16410 PRINT "LDSCR "+ D$+ ".DSP 7000"
16420 PLOT 27,27
16430 PLOT 3,10,4:PRINT "NOTE HOW SHORT TERM TREND IS"
16440 PLOT 3,10,5:PRINT "DOWNWARDS COMPARED TO LONG TERM"
16450 PLOT 3,20,31:INPUT "PRESS RETURN TO CONTINUE  ";T$
16500 PLOT 6,2,12,15,29,3,16,2:PRINT "ARITHMETIC  COMMANDS :-"
16510 PLOT 3,7,4:PRINT "THIS IS ONE OF THE MORE POWERFUL COMMANDS OF THE"
16520 PLOT 3,7,5:PRINT "OF THE PACKAGE AS IT ALLOWS ARITHMETIC OPERATIONS"
16530 PLOT 3,7,6:PRINT "ON TWO OR MORE DATA FILES.  THE COMMAND MUST BE"
16540 PLOT 3,7,7:PRINT "FOLLOWED BY A SPACE THEN ONE OF THE FOLLOWING"
16550 PLOT 3,7,8:PRINT "ARITHMETIC OPERATIONS:-  + (ADDITION), - (SUBTRACTIO),"
16560 PLOT 3,7,9:PRINT "* (MULTIPLICATION) AND / (DIVISION), THEN IMMEDIATELY"
16570 PLOT 3,7,10:PRINT "FOLLOWED BY THE NAME OF THE FILE WHICH IS TO BE"
16580 PLOT 3,7,11:PRINT "COMPUTED WITH THE 0 FILE.  E.G. ARI +CARSAL."
16590 PLOT 3,7,13:PRINT "WE HAVE CREATED ANOTHER FILE TITLED COMPETITOR CAR"
16600 PLOT 3,7,14:PRINT "SALES (COMSAL) REPRESENTING A FIRM WHICH WE ARE"
16610 PLOT 3,7,15:PRINT "CONSIDERING TO TAKE OVER.  IF WE WISHED TO SEE WHAT"
16620 PLOT 3,7,16:PRINT "OUR TOTAL MARKET CAPTURE WOULD BE INCLUDING THE"
16630 PLOT 3,7,17:PRINT "COMPETITORS SALES WE COULD TYPE IN THE FOLLOWING"
16640 PLOT 3,7,18:PRINT "COMMANDS:"
16650 PLOT 3,8,20:PRINT "LOAD COMSAL, ARI +CARSAL, BAR 0 WE COULD ADD THE"
16660 PLOT 3,8,21:PRINT "COMMANDS LIN TOTSAL TO SEE THE TOTAL MARKET, THEN"
16670 PLOT 3,8,22:PRINT "COL (BLACK), BAR CARSAL  TO GIVE AN INTERESTING"
16680 PLOT 3,8,23:PRINT "EFFECT.  THE BLANK BASE OF THE GRAPH WOULD REPRESENT"
16690 PLOT 3,8,24:PRINT "OUR CAR SALES."
16700 PLOT 3,20,29:PRINT "PRESS RETURN TO CONTINUE"
16710 PLOT 3,47,29:INPUT "";T$
16720 PLOT 12:GOTO 16765
16725 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
16730 E$= "ARI1"
16740 PLOT 27,4
16750 PRINT "LDSCR "+ E$+ ".DSP 7000"
16760 PLOT 27,27
16765 PLOT 3,10,2:PRINT "COMMANDS USED ARE:-"
16770 PLOT 3,10,3:PRINT "LOAD COMSAL"
16780 PLOT 3,10,4:PRINT "ARI +CARSAL"
16790 PLOT 3,10,5:PRINT "BAR 0"
16800 PLOT 3,10,6:PRINT "LIN TOTSAL"
16810 PLOT 3,10,7:PRINT "COL (BLACK)"
16820 PLOT 3,10,8:PRINT "BAR CARSAL"
16825 PLOT 3,20,20:PRINT "THIS BLANK AREA REPRESENTS OUR CAR SALES"
16830 PLOT 3,20,31:INPUT "PRESS RETURN TO CONTINUE   ";T$
16850 PLOT 6,2,12,15,29,3,16,2:PRINT "ARITHMETIC  COMMAND (CONTINUED)"
16860 PLOT 3,2,5:PRINT "SOMETIMES DATA EXHIBITS SHORT TERM UP AND DOWN FLUCTUATIONS"
16870 PLOT 3,2,6:PRINT "THAT ARE INDEPENDENT OF THE LONG TERM TREND.  DETRENDING"
16880 PLOT 3,2,7:PRINT "REMOVES THE OVERALL LONG TERM TREND FROM THE DATA SO THAT"
16890 PLOT 3,2,8:PRINT "YOU SEE ONLY THE SHORT TERM FLUCTUATIONS.  ONE METHOD OF"
16900 PLOT 3,2,9:PRINT "DETRENDING IS TO SMOOTH THE RAW DATA (E.G. BY USING A MOVING"
16910 PLOT 3,2,10:PRINT "AVERAGE) AND THEN TAKE THE LONG TERM TREND FROM THE MOVING"
16920 PLOT 3,2,11:PRINT "AVERAGE."
16930 PLOT 3,2,13:PRINT "THE GRAPH THAT FOLLOWS IS SOMETHING WE HAVE NOT SEEN BEFORE"
16940 PLOT 3,2,14:PRINT "AS IT HAS NEGATIVE AS WELL AS POSITIVE VALUES.  IT HIGHLIGHTS"
16950 PLOT 3,2,15:PRINT "VERY QUICKLY THE SHORT TERM MOVEMENTS IN OUR CAR SALES.  TO"
16960 PLOT 3,2,16:PRINT "ACHIEVE THE GRAPH, THE FOLLOWING COMMANDS ARE REQUIRED."
16970 PLOT 3,20,19:PRINT "LOAD CARSAL"
16980 PLOT 3,20,20:PRINT "MOV 3"
16990 PLOT 3,20,21:PRINT "SAVE 1"
17000 PLOT 3,20,22:PRINT "TREND"
17010 PLOT 3,20,23:PRINT "ARI -1"
17020 PLOT 3,20,24:PRINT "NEW"
17030 PLOT 3,20,25:PRINT "BAR 0"
17040 PLOT 3,16,29:INPUT "PRESS RETURN TO CONTINUE   ";T$
17050 PLOT 12:GOTO 17200
17055 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
17060 F$= "ARI2"
17070 PLOT 27,4
17080 PRINT "LDSCR "+ F$+ ".DSP 7000"
17090 PLOT 27,27
17100 PLOT 3,20,30:INPUT "PRESS RETURN TO CONTINUE   ";T$
17200 PLOT 6,2,12,15,29,3,18,3:PRINT "CONSTANT  COMMAND :-"
17210 PLOT 3,2,6:PRINT "THIS COMMAND ALLOWS YOU TO SUBTRACT, MULTIPLY, ADD OR DIVIDE"
17220 PLOT 3,2,7:PRINT "A FILE BY A CONTSTANT NUMBER STARTING AT ANY DATE ALONG THE"
17230 PLOT 3,2,8:PRINT "FILE.  THE COMMAND MUST BE FOLLOWED BY A SPACE, THEN ONE OF"
17240 PLOT 3,2,9:PRINT "THE FOUR ARITHMETIC SYMBOLS, A NUMBER, A COMMA THEN THE"
17250 PLOT 3,2,10:PRINT "STARTING DATE.  EG CON *1.2,1/81 WILL INCREASE ALL NUMBERS"
17260 PLOT 3,2,11:PRINT "FROM 1/81 ONWARDS BY 20%."
17270 PLOT 3,2,14:PRINT "THIS COMMAND IS HANDY WHEN GENERATING GRAPHS WHERE SOME OF"
17280 PLOT 3,2,15:PRINT "THE DATA IS NEGATIVE, BECAUSE LOGARITHMS OF ZERO OR NEGATIVE"
17290 PLOT 3,2,16:PRINT "NUMBERS ARE SET TO ZERO.  TO OVERCOME THIS PROBLEM, THE"
17300 PLOT 3,2,17:PRINT "CONSTANT COMMAND CAN BE USED TO INCREASE ALL DATA TO POSITIVE"
17310 PLOT 3,2,18:PRINT "VALUES, THEN THE PARTICULAR ARITHEMTIC FUNCTION CAN BE"
17320 PLOT 3,2,19:PRINT "PERFORMED AND FINALLY BEFORE GRAPHING THE RESULTING DATA CAN"
17330 PLOT 3,2,20:PRINT "BE REDUCED BY THE CONSTANT TO ITS TRUE VALUES."
17340 PLOT 3,17,27:PRINT "PRESS RETURN TO CONTINUE"
17350 PLOT 3,45,27:INPUT "";T$
17400 PLOT 6,2,12,15,29,3,16,1:PRINT "BASELINE  COMMAND :-"
17410 PLOT 3,0,3:PRINT "THE BASELINE COMMAND IS USED TO CREATE HORIZONTAL REFERENCE"
17420 PLOT 3,0,4:PRINT "LINES.  TO CREATE A SIMPLE HORIZONTAL LINE AT ANY POINT ON THE"
17430 PLOT 3,0,5:PRINT "GRAPH, TWO METHODS CAN BE USED.  FIRSTLY, BY ENTERING A NUMBER"
17440 PLOT 3,0,6:PRINT "AFTER THE COMMAND.  EG BASE 25 WILL CAUSE A LINE TO APPEAR AT"
17450 PLOT 3,0,7:PRINT "VALUE 25 ON THE NEXT GRAPH.  SECONDLY, BY ENTERING A DATE THAT"
17460 PLOT 3,0,8:PRINT "EXISTS IN THE FILE.  USING THE DATE CAUSES THE LINE TO APPEAR"
17470 PLOT 3,0,9:PRINT "AT AN EQUIVALENT VALUE AT THE DATES SPECIFIED.  EG BASE 4/80"
17480 PLOT 3,0,10:PRINT "WOULD GENERATE THE LINE AT VALUE 15, IF THE DEMONSTRATION FILE"
17490 PLOT 3,0,11:PRINT "CARSAL WAS BEING USED.  THE PURPOSE OF THE BASELINE COMMAND IS"
17500 PLOT 3,0,12:PRINT "TO PROVIDE A CONSTANT NUMBER SERIES FROM WHICH OTHER FUNCTIONS"
17510 PLOT 3,0,13:PRINT "CAN BE CREATED."
17520 PLOT 3,0,15:PRINT "A STEPPED LINE CAN BE GENERATED WITH THE AID OF THE CONSTANT"
17530 PLOT 3,0,16:PRINT "COMMAND.  A REASON FOR COMBINING THE TWO COMMANDS COULD BE IF"
17540 PLOT 3,0,17:PRINT "WE WISHED TO DETERMINE THE TOTAL ESTIMATED MONTHLY DOLLAR SALES"
17550 PLOT 3,0,18:PRINT "OF OUR CAR SALES, ASSUMING WE INCREASE THE PRICE BY 10% EACH SIX"
17560 PLOT 3,0,19:PRINT "MONTHS. I.E. AT 7/80, 1/81, 7/81 AND 1/82 WITH A COMMENCING"
17570 PLOT 3,0,20:PRINT "SELLING PRICE OF $10,000.  THE PURPLE COMMANDS WOULD BE USED TO"
17580 PLOT 3,0,21:PRINT "GENERATE THE STEPPED BASELINE AS PER THE NEXT DISPLAY.  THE"
17590 PLOT 3,0,22:PRINT "ADDITIONAL RED COMMANDS WILL GIVE US THE GRAPH REQUIRED."
17600 PLOT 3,2,24:PRINT "LOAD CARSAL";SPC( 11);"ARI *CARSAL"
17610 PLOT 3,2,25:PRINT "BASE 10000";SPC( 12);"NEW"
17620 PLOT 3,2,26:PRINT "CON *1.1,7/80";SPC( 9);"LINE 0"
17630 PLOT 3,2,27:PRINT "CON *1.1,1/81";SPC( 9);"TITLE ESTIMATED MONTHLY SALES"
17640 PLOT 3,2,28:PRINT "CON *1.1,7/81";SPC( 9);"UNIT TITLE $MILLIONS"
17650 PLOT 3,2,29:PRINT "CON *1.1,1/82"
17660 PLOT 3,2,30:PRINT "NEW"
17670 PLOT 3,2,31:PRINT "LINE 0";SPC( 18):INPUT "PRESS RETURN TO CONTINUE   ";T$
17680 PLOT 12:GOTO 17850
17685 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
17690 G$= "BAS1"
17700 PLOT 27,4
17710 PRINT "LDSCR "+ G$+ ".DSP 7000"
17720 PLOT 27,27
17730 PLOT 3,18,30:INPUT "PRESS RETURN TO CONTINUE    ";T$
17800 PLOT 12
17805 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
17810 H$= "BAS2"
17820 PLOT 27,4
17830 PRINT "LDSCR "+ H$+ ".DSP 7000"
17840 PLOT 27,27
17850 PLOT 3,10,2:PRINT "THE WHITE LINE WAS NOT GENERATED BY THE"
17860 PLOT 3,10,3:PRINT "COMMANDS SHOWN, BUT WE HAVE INCLUDED IT"
17870 PLOT 3,10,4:PRINT "TO INDICATED WHAT THE SALES WOULD BE LIKE"
17880 PLOT 3,10,5:PRINT "IF NO INCREASE IN SELLING PRICES IS TO BE MADE."
17890 PLOT 3,18,30:INPUT "PRESS RETURN TO CONTINUE     ";T$
17900 PLOT 6,2,12,15,29,3,17,2:PRINT "INFLATION  COMMAND :-"
17910 PLOT 3,3,5:PRINT "THIS COMMAND COMPUTES THE MONTHLY OR THE QUARTELY INFLATION"
17920 PLOT 3,3,6:PRINT "RATE THAT WILL, WHEN COMPOUNDED, PRODUCE AN ANNUAL INFLATION"
17930 PLOT 3,3,7:PRINT "RATE AS SPECIFIED IN THE ARGUMENT TO THE COMMAND.  THE DATE"
17940 PLOT 3,3,8:PRINT "ENTERED IN THE USUAL FORMAT SPECIFIES THE FIRST PERIOD IN"
17950 PLOT 3,3,9:PRINT "WHICH THE INFLATION FACTOR STARTS.  INFLATION CAN BE POSITIVE"
17960 PLOT 3,3,10:PRINT "OR NEGATIVE."
17970 PLOT 3,3,12:PRINT "WE WILL TAKE THE GRAPH PREVIOUSLY DISPLAYED WITH THE BASELINE"
17980 PLOT 3,3,13:PRINT "COMMAND AND FIND OUT WHAT OUR MINIMUM SALES NEED TO BE TO"
17990 PLOT 3,3,14:PRINT "HAVE REAL GROWTH ASSUMING A 12% INFLATION."
18000 PLOT 3,3,16:PRINT "THE ADDITIONAL COMMANDS WE NEED TO USE (EXCLUDING THE TITLE"
18010 PLOT 3,3,17:PRINT "CHANGE COMMANDS) ARE:"
18020 PLOT 3,10,19:PRINT "SAV 1"
18030 PLOT 3,10,20:PRINT "LOAD CARSAL"
18040 PLOT 3,10,21:PRINT "BASE 10000"
18050 PLOT 3,10,22:PRINT "ARI *CARSAL"
18060 PLOT 3,10,23:PRINT "INF 12,1/80"
18070 PLOT 3,10,24:PRINT "SAV 2"
18080 PLOT 3,10,25:PRINT "NEW"
18090 PLOT 3,10,26:PRINT "2BAR 1"
18100 PLOT 3,10,27:PRINT "COL (RED KEY)"
18110 PLOT 3,10,28:PRINT "2BAR 2"
18120 PLOT 3,15,31:INPUT "PRESS RETURN TO CONTINUE   ";T$
18140 PLOT 12:GOTO 18250
18150 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
18160 I$= "INF1"
18170 PLOT 27,4
18180 PRINT "LDSCR "+ I$+ ".DSP 7000"
18190 PLOT 27,27
18200 PLOT 3,18,30:INPUT "PRESS RETURN TO CONTINUE    ";T$
18250 PLOT 6,2,12,15,29,3,14,2:PRINT "DIFFERENTIATION  COMMAND :-"
18260 PLOT 3,5,5:PRINT "THIS COMMAND ALLOWS US TO SEE THE DIFFERENCE BETWEEN"
18270 PLOT 3,5,6:PRINT "EACH DATA POINT.  THIS IS CALLED THE RATE OF CHANGE."
18280 PLOT 3,5,7:PRINT "FOR EXAMPLE, IN OUR FILE TOTSAL SIX OF THE DATA POINTS"
18290 PLOT 3,5,8:PRINT "ARE 30,28,27,26,28,29.  THE DIFFERENTIATED DATA WOULD"
18300 PLOT 3,5,9:PRINT "BE   -2,-1,-1,+2,+1.  IN GRAPH FORMAT IT INDICATES"
18310 PLOT 3,5,10:PRINT "WHETHER THE RATE OF GROWTH OR DECLINE IS SPEEDING UP"
18320 PLOT 3,5,11:PRINT "OR SLOWING DOWN."
18330 PLOT 3,5,13:PRINT "BY ADDING A % SIGN IN FRONT OF THE COMMAND, A GRAPH"
18340 PLOT 3,5,14:PRINT "DISPLAYING THE % RATE OF CHANGE ON A MONTH TO MONTH"
18350 PLOT 3,5,15:PRINT "BASIS CAN BE GENERATED."
18360 PLOT 3,5,17:PRINT "A SIMPLE EXAMPLE TO DEMONSTRATE BOTH COMMANDS ON THE"
18370 PLOT 3,5,18:PRINT "ONE GRAPH USES THE FOLLOWING COMMANDS."
18380 PLOT 3,14,20:PRINT "LOAD TOTSAL"
18390 PLOT 3,14,21:PRINT "DIF"
18400 PLOT 3,14,22:PRINT "LIN 0"
18410 PLOT 3,14,23:PRINT "LOAD TOTSAL"
18420 PLOT 3,14,24:PRINT "%DIF"
18430 PLOT 3,14,25:PRINT "LIN 0"
18440 PLOT 3,16,28:PRINT "PRESS RETURN TO CONTINUE"
18450 PLOT 3,43,28:INPUT "";T$
18460 PLOT 12:GOTO 18600
18470 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
18480 J$= "DIF1"
18490 PLOT 27,4
18500 PRINT "LDSCR "+ J$+ ".DSP 7000"
18510 PLOT 27,27
18520 PLOT 3,18,30:INPUT "PRESS RETURN TO CONTINUE   ";T$
18600 PLOT 6,2,12,15,29,3,15,2:PRINT "LEAD AND LAG  COMMAND :-"
18610 PLOT 3,0,4:PRINT "THE LEAD AND LAG COMMANDS CAN BE USED TO SHIFT THE STARTING"
18620 PLOT 3,0,5:PRINT "DATE OF A FILE FORWARD OR BACKWARD IN TIME.  THE LEAD COMMAND"
18630 PLOT 3,0,6:PRINT "CAUSES THE STARTING DATE TO BE MOVED TO AN EARLIER TIME AND"
18640 PLOT 3,0,7:PRINT "VISA VERSA FOR THE LAG COMMAND."
18650 PLOT 3,0,9:PRINT "WITH THE COMMANDS IT IS POSSIBLE TO SEE THE RELATIONSHIP"
18660 PLOT 3,0,10:PRINT "BETWEEN TWO SEPERATE FILES.  FOR EXAMPLE, IF WE HAD A FILE"
18670 PLOT 3,0,11:PRINT "WHICH SHOWED MONEY SPENT ON AN ADVERTISING CAMPAIGN TO SELL"
18680 PLOT 3,0,12:PRINT "OUR CARS, WE MAY WISH TO KNOW WHAT EFFECT THE CAMPAIGN HAD"
18690 PLOT 3,0,13:PRINT "ON OUR SALES.  AS THERE MAY BE SEVERAL MONTHS BEFORE THE SALES"
18700 PLOT 3,0,14:PRINT "FOLLOW THE PATTERNS OF THE ADVERTISING CAMPAIGN, BY USING THE"
18710 PLOT 3,0,15:PRINT "LAG COMMAND WE COULD SHIFT THE ADVERTISING DATA SO THAT IT"
18720 PLOT 3,0,16:PRINT "CO-INSIDES WITH THE SALES DATA, AND THEN COMPARE THE TWO GRAPHS."
18730 PLOT 3,0,18:PRINT "A NUMBER REPRESENTING THE PERIODS THAT YOU WISH TO SHIFT A"
18740 PLOT 3,0,19:PRINT "GRAPH IS REQUIRED AFTER THE COMMANDS. E.G. LAG 4 REGRESSES A"
18750 PLOT 3,0,20:PRINT "GRAPH BY 4 PERIODS."
18760 PLOT 3,0,22:PRINT "THE FOLLOWING GRAPH SHOWS THE EFFECT OF THE LAG AND LEAD"
18770 PLOT 3,0,23:PRINT "COMMANDS."
18780 PLOT 3,16,28:PRINT "PRESS RETURN TO CONTINUE"
18790 PLOT 3,44,28:INPUT "";T$
18800 PLOT 12:GOTO 18900
18810 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
18820 K$= "LEAD1"
18830 PLOT 27,4
18840 PRINT "LDSCR "+ K$+ ".DSP 7000"
18850 PLOT 27,27
18860 PLOT 3,18,30:INPUT "PRESS RETURN TO CONTINUE    ";T$
18900 PLOT 6,2,12,15,29,3,22,2:PRINT "PERIOD  COMMAND  :-"
18910 PLOT 3,3,5:PRINT "THIS COMMAND SIMPLY ALLOWS YOU TO CONVERT A GRAPH FROM"
18920 PLOT 3,3,6:PRINT "MONTHLY ANALYSIS TO QUARTERLY OR YEARLY ANALYSIS, AND"
18930 PLOT 3,3,7:PRINT "VISA VERSA.  THE ONLY THING TO BEAR IN MIND IS THAT ON"
18940 PLOT 3,3,8:PRINT "CONVERTING FROM ANNUAL TO EITHER MONTHLY OR QUARTERLY"
18950 PLOT 3,3,9:PRINT "ANALYSIS IS THAT THE ANNUAL FIGURES WILL BE DIVIDED"
18960 PLOT 3,3,10:PRINT "EQUALLY INTO 12 OR 4 PERIODS.  THE COMMAND REQUIRES"
18970 PLOT 3,3,11:PRINT "EITHER M, Q OR Y TO THE FOLLOW THE COMMAND."
18980 PLOT 3,3,12:PRINT "E.G.  PERIOD M."
18990 PLOT 3,20,15:PRINT "SUMMATION  COMMAND  :-"
19000 PLOT 3,3,18:PRINT "THIS COMMAND ACCUMULATES EACH PERIOD WITH THE PREVIOUS"
19010 PLOT 3,3,19:PRINT "PERIOD SO THAT THE LAST PERIOD REPRESENTS THE CUMULATIVE"
19020 PLOT 3,3,20:PRINT "TOTAL OF ALL PERIODS ON THE GRAPH.  THIS COMMAND CAN BE"
19030 PLOT 3,3,21:PRINT "USED WITH DATA THAT HAS BOTH POSITIVE OR NEGATIVE VALUES."
19040 PLOT 3,3,22:PRINT "A CUMULATIVE VALUE WOULD INDICATE A NET PLUS OR MINUS IN"
19050 PLOT 3,3,23:PRINT "VALUES OVER THE PERIOD OF THE GRAPH.  WHEN YOU USE THE"
19060 PLOT 3,3,24:PRINT "COMMAND YOU HAVE TO SPECIFY THE DATE FROM WHICH THE"
19070 PLOT 3,3,25:PRINT "SUMMATION TAKES PLACE.  E.G.  SUM 1/80"
19080 PLOT 3,3,27:PRINT "THE NEXT GRAPH WILL DISPLAY THE SUMMATION COMMAND."
19100 PLOT 3,21,30:PRINT "PRESS RETURN TO CONTINUE"
19110 PLOT 3,48,30:INPUT "";T$
19120 PLOT 12:GOTO 19170
19130 PLOT 3,15,15:PRINT "LOADING  EXAMPLE  GRAPH"
19140 L$= "SUM1"
19145 PLOT 27,4
19150 PRINT "LDSCR "+ L$+ ".DSP 7000"
19160 PLOT 27,27
19170 PLOT 3,10,2:PRINT "COMMANDS USED"
19180 PLOT 3,10,3:PRINT "LOAD CARSAL"
19190 PLOT 3,10,4:PRINT "HOR 11"
19200 PLOT 3,10,5:PRINT "HIG 198"
19210 PLOT 3,10,6:PRINT "COL (RED)"
19220 PLOT 3,10,7:PRINT "BAR 0"
19230 PLOT 3,10,8:PRINT "SUM 1/80"
19240 PLOT 3,10,9:PRINT "COL (YELLOW)"
19250 PLOT 3,10,10:PRINT "LIN 0"
19260 PLOT 3,18,30:INPUT "PRESS RETURN TO CONTINUE     ";T$
19300 PLOT 6,2,12,15,29,3,12,2:PRINT "LOGARITHMIC AND EXPONENTIAL COMMANDS  :-"
19310 PLOT 3,4,5:PRINT "THE LOGARITHMIC COMMAND CONVERTS THE DATA IN THE 0 FILE"
19320 PLOT 3,4,6:PRINT "TO BASE 10 LOGARITHM.  AS A RESULT, THE SCALE OF THE"
19330 PLOT 3,4,7:PRINT "VERTICAL AXIS WILL THEN REPRESENT POWERS OF TWO."
19340 PLOT 3,4,8:PRINT "FOR EXAMPLE, 2 REPRESENTS 100 (10 TO THE POWER OF 2)"
19350 PLOT 3,4,9:PRINT "THE EXPONENTIAL COMMAND IS THE OPPOSITE COMMAND TO THE"
19360 PLOT 3,4,10:PRINT "LOGARITHM, AND CAN BE USED TO BRING A LOGARITHMIC FILE"
19370 PLOT 3,4,11:PRINT "BACK TO NORMAL SCALE."
19380 PLOT 3,4,15:PRINT "THIS NOW COVERS THE STATISTICAL MANIPULATOR COMMANDS."
19390 PLOT 3,4,17:PRINT "PRESSING RETURN KEY WILL RETURN YOU TO BASIC MODE."
19400 PLOT 3,4,19:PRINT "IF YOU WISH TO REVIEW THIS SECTION THEN TYPE R AND PRESS"
19410 PLOT 3,4,21:PRINT "RETURN KEY.  TO EITHER REVIEW THE DATABASE PROGRAM OR THE"
19420 PLOT 3,4,23:PRINT "REMAINDER OF THE DISPLAY PROGRAM, AFTER PRESSING RETURN KEY,"
19430 PLOT 3,4,25:PRINT "TURN DISK OVER TO SIDE ONE AND THEN PRESS AUTO KEY."
19440 PLOT 3,24,29:PRINT "YOUR CHOICE  ?"
19450 PLOT 3,42,29:INPUT "";T$
19460 IF T$= "R"GOTO 15000
19470 PLOT 12
19999 END