370 DATA 1789,1797,1801,1809,1817,1825,1829,1837,1841,1841,1845,1849,1850,1853,1857,1861,1865,1869,1877,1881,1881,1885,1889,1893,1897,1901,1909,1913,1921,1923,1929,1933,1945,1953,1961,1963,1968,1974,1977,1981
380 GOSUB 1200
390 Y=INT(RND*40)+1' 1 TO 40
400 CLS:LOCATE 10,5
410 PRINT "What year did " PR$(Y) " begin his presidency";
420 INPUT GUESS
430 PRINT:PRINT
440 IF GUESS<>YEAR(Y) AND ABS(GUESS-YEAR(Y))<3 THEN PRINT"Close, it was" YEAR(Y):GOTO 480
450 IF GUESS = YEAR(Y) THEN GOTO 460 ELSE GOTO 470
460 PRINT " RIGHT": RIGHT=1:GOTO 480
470 PRINT " Wrong, it was" YEAR(Y)
480 FOR L=1 TO 4000:NEXT L
490 GOTO 190
500 END
510 CLS 'PRESIDENTIAL SUCCESSION
520 GOSUB 1200
530 RESTORE 570
540 FOR I=1 TO 40
550 READ S(I)
560 NEXT I
570 DATA 2,6,21,15,39,22,24,30,34,13,38,20,18,29,9,23,19,31,7,3,17,36,35,16,4,25,5,37,14,11,40,32,26,27,12,33,10,8,1,28
580 ' PRINT IN ALPHABETICAL ORDER
590 FOR K = 1 TO 40
600 PRINT K;PR$(S(K)),
610 NEXT K
620 B=INT(RND*2)
630 A=INT(RND*39)+1' 1 TO 39
640 IF B=1 THEN 730
650 LOCATE 17,1
660 PRINT "Who was the President that preceeded ";PR$(A+1);"?":PRINT
670 INPUT "Enter the number of your choice... ", N
680 IF S(N)=A THEN RIGHT=1
690 PRINT:PRINT
700 IF S(N)=A THEN PRINT "RIGHT" ELSE PRINT "Wrong, it was " PR$(A)
710 FOR W= 1 TO 5000:NEXT
720 GOTO 190
730 LOCATE 17,1
740 PRINT "Who was the President that followed ";PR$(A);"?"
750 PRINT
760 INPUT "Enter the number of your choice... ",N
770 PRINT:PRINT
780 IF S(N)=A+1 THEN RIGHT=1
790 IF S(N)=A+1 THEN PRINT "RIGHT" ELSE PRINT "Wrong, it was " PR$(A+1)
800 FOR W=1 TO 6000: NEXT
810 GOTO 190
820 ' VICE PRESIDENT ROUTINE
830 CLS:GOSUB 1200' LOAD PRESIDENTS
840 'create vice-presidential table
850 RESTORE 890
860 FOR N=1 TO 48
870 READ VPTABLE(N,1):READ VPTABLE(N,2)
880 NEXT N
890 DATA 1,1,2,24,3,6,3,9,4,9,4,19,5,38,6,8,7,8,7,41,8,27,9,40,10,33,11,13,12,16,13,33,14,28,15,5,16,20,17,33,18,10,18,44,19,43,20,3,21,33,22,21,23,31,24,37,25,22,25,35,26,15,27,36,28,29,29,11,30,14,31,12,32,18,32,42,32,39,33,4,34,32,35,26,36,23,37,2
900 DATA 37,17,38,34,39,30,40,7
910 RESTORE 950
920 FOR W=1 TO 44
930 READ VICE$(W)
940 NEXT W
950 DATA "John Adams ",Spiro T. Agnew,Chester A. Arthur,Alben W. Barkley,John Breckinridge,Aaron Burr,George Bush,John C. Calhoun,George Clinton,Schuyler Colfax,Calvin Coolidge,Charles Curtis,George M. Dallas,Charles G. Dawes,Charles Fairbanks
960 DATA Millard Fillmore,Gerald R. Ford, John N. Garner, Elbridge Gerry,Hannibal Hamlin
970 DATA Thomas A. Hendricks,Garret A. Hobart,Hubert H. Humphrey,Thomas Jefferson,Andrew Johnson,Lyndon B. Johnson,Richard M. Johnson,William R. King,Thomas R. Marshall,Walter F. Mondale,Levi P. Morton,Richard M. Nixon,"NONE "
980 DATA Nelson Rockefeller,Theodore Roosevelt,James S. Sherman,Adlai E. Stevenson,Daniel Tompkins,Harry S. Truman,John Tyler,Martin Van Buren,Henry A. Wallace,William A. Wheeler,Henry Wilson,
990 FOR W=1 TO 44:PRINT W VICE$(W),
1000 NEXT W
1010 VP=INT(RND*40)+1
1020 LOCATE 18,15:PRINT "Who was Vice-President to " PR$(VP) "?"
1030 LOCATE 20,15:PRINT "Enter the number of your choice...";
1040 INPUT"",GUESS
1050 PRINT:PRINT
1060 T=0:RIGHT = 0
1070 FOR C=1 TO 49
1080 IF VPTABLE(C,1)=VP THEN T=T+1:TEMP$(T)=VICE$(VPTABLE(C,2)):IF VPTABLE (C,2)=GUESS THEN RIGHT =1
1090 NEXT C
1100 IF RIGHT=0 GOTO 1120
1110 PRINT "Right" : FOR W= 1 TO 5000: NEXT:GOTO 190
1120 PRINT "WRONG, ";
1130 IF T=1 THEN PRINT "it was " TEMP$(1):FOR Q=1 TO 6000:NEXT:GOTO 190
1140 PRINT "they were ";
1150 FOR X= 1 TO T
1160 PRINT TEMP$(X) " ";
1170 NEXT X
1180 FOR P=1 TO 6000:NEXT
1190 GOTO 190
1200 RESTORE 1240 ' LOAD PRESIDENTS' NAMES
1210 FOR N=1 TO 40
1220 READ PR$(N)
1230 NEXT N
1240 DATA George Washington,"John Adams ",Thomas Jefferson,James Madison,James Monroe,John Quincy Adams, Andrew Jackson, Martin Van Buren,William H. Harrison,"John Tyler ",James K. Polk, Zachary Taylor, Millard Filmore, Franklin Pierce
1250 DATA James Buchanan,Abraham Lincoln,Andrew Johnson,Ulysses S. Grant,Rutherford B. Hayes,James A. Garfield,Chester A. Arthur,Grover Cleveland(1),Benjamin Harrison,Grover Cleveland(2),William McKinley,Theodore Roosevelt,William H. Taft,Woodrow Wilson
1260 DATA Warren G. Harding,Calvin Coolidge,Herbert C. Hoover,Franklin Roosevelt,Harry S. Truman,Dwight Eisenhower,John F. Kennedy,Lyndon B. Johnson,Richard M. Nixon,Gerald R. Ford,James E. Carter,Ronald Regan
1270 RETURN
1280 CLS:LOCATE 12,15:PRINT "How many players? (1 to 4) ...1"
1290 LOCATE 12,46:INPUT "",PLAYERS
1300 IF PLAYERS<2 THEN PLAYERS=1:IF PLAYERS >4 THEN PLAYERS=4