1! Program GEN1.BAS Version 1 June, 1976 This is the data generator for Unit 1( Calculating the Variance) 2! Department of Psychology Lawrence University Appleton, Wisconsin, 54911 (414) 739-3681, Ext. 464 3! Copyright (C) 1975, 1976 by Francis Campos. General permission to copy or modify, but not for profit, all or part of this document or the software described herein is hereby 4! granted, provided that this copyright notice is given, and reference is made to the fact that reproduction privileges were granted by permission of Francis Campos, Lawrence University. 5! Although every effort has been made to insure the accuracy and usefulness of this document and the software described herein, neither the author(s), Lawrence University, nor its funding 6! sources make any warranty, expressed or implied, with respect to the performance or features of same on equipment which Lawrence neither owns nor controls. 7! This program is one of the twenty-one BASIC-PLUS programs and eighteen virtual core files that comprise the CASANOVA package for Computer ASsisted instruction in ANalysis Of 8! VAriance. The package is coded for use on a PDP 11/40, 45 or 70 computer operating under RSTS/E, V6A-02. Those who wish to adapt the package to other systems and/or programming languages are 9! urged to consult the BASIC-PLUS Language Manual, published by the Digital Equipment Corporation, Maynard, Massachusetts, 01754, as well as the Instructor's Manual for CASANOVA, provided by Lawrence. 105 RANDOMIZE 110 &:&:&:INPUT"WHAT IS YOUR NAME";Z1$ 115 Z1$=Z1$+".XDS" 120 OPEN Z1$ AS FILE 1 125 N=18 130 DIM #1, A2(32),A2$(2) 135 DIM Z(18) 140 A2(0)=18: A2$(1)="1" 145 A2$(0)="" 150 GOTO 500 155 A2(I)=Z(I) FOR I=1 TO N 160 CLOSE 1 165 CHAIN "INTXLG" 500 &"THE DATA YOU WILL USE FOR THIS PROBLEM APPEARS IN THREE SETS 510 FOR I=1 TO 6 520 A(I)=INT(RND*10) 530 B(I)=A(I)*2 540 C(I)=A(I)+2 550 NEXT I 555 & 560 &"SET A SET B SET C" 565 & 570 & A(I),B(I),C(I) FOR I=1 TO 6 580 &:&:&:&:& 590 A=0:B=0:C=0:A2=0:B2=0:C2=0 600 FOR I=1 TO 6 610 A=A+A(I):B=B+B(I):C=C+C(I) 620 A2=A2+A(I)^2:B2=B2+B(I)^2:C2=C2+C(I)^2 630 NEXT I 700 Z(1)=A/6:Z(8)=B/6:Z(13)=C/6 710 Z(2)=A^2:Z(3)=Z(2)/6:Z(4)=A2 720 Z(5)=Z(4)-Z(3) 730 Z(6)=Z(5)/5 740 Z(7)=SQR(Z(6)) 750 Z(9)=B^2/6 760 Z(10)=B2 770 Z(11)=(B2-Z(9))/5 780 Z(12)=SQR(Z(11)) 790 Z(14)=C^2/6 800 Z(15)=C2 810 Z(16)=(Z(15)-Z(14))/5 820 Z(17)=SQR(Z(16)) 830 Z(18)=1 998 GOTO 155 999 END