File ADDEX.FC (FOCAL source file)

Directory of image this file is from
This file as a plain text file

C-PS/8 FOCAL, 1971
 1.01 C     ADDEX FROM 	PROGRAMMING LANGUAGES	
 1.02 C     COPYRIGHT 1970 BY DIGITAL EQUIPMENT CORP.
 1.03 C     LAST CHANGE: 8/19/71
 1.04 
 1.05 C     THIS IS AN EDUCATIONAL ROUTINE DESIGNED FOR CHILDREN IN
 1.06 C ELEMENTARY SCHOOL.  THE PURPOSE IS TO ALLOW THE STUDENTS TO USE THE
 1.07 C COMPUTER AND TO AID THEM IN PRACTICING ADDITION.
 1.29 E
 1.30 T "HELLO, PLEASE ADD THE FOLLOWING SETS OF NUMBERS."!;G 1.4
 1.35 T "NOW THESE:"!
 1.40 S A=FABS(FITR(100*FRAN()));S B=FABS(FITR(99*FRAN()))
 1.50 T %2,:4,A,!"+",:4,B,!"-------",!!
 1.60 A "=   ",REPLY,!
 1.70 I (RE-A-B) 2.1,1.8,2.1
 1.80 S WRONG=0;T "CORRECT"!
 1.90 S CORRECT=CO+1;I (CO-19) 1.35,1.35,4.1
 2.10 S WR=WR+1;I (WR-2) 2.2,2.2,3.1
 2.20 T "SORRY, TRY AGAIN.",!;G 1.5
 3.10 T "IF YOU ARE HAVING TROUBLE, ASK YOUR TEACHER FOR HELP.",!
 3.20 T "THE CORRECT ANSWER IS ",%3,A+B,!
 3.30 G 1.3
 4.10 T "CONGRATULATIONS! YOU ARE FINISHED."!!!!;Q



Feel free to contact me, David Gesswein djg@pdp8online.com with any questions, comments on the web site, or if you have related equipment, documentation, software etc. you are willing to part with.  I am interested in anything PDP-8 related, computers, peripherals used with them, DEC or third party, or documentation. 

PDP-8 Home Page   PDP-8 Site Map   PDP-8 Site Search