home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc1_2_x / studymth.sit / StudyMath / card_2817.txt < prev    next >
Text File  |  1990-05-07  |  18KB  |  823 lines

  1. -- card: 2817 from stack: in
  2. -- bmap block id: 3760
  3. -- flags: 0000
  4. -- background id: 2805
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on complexity operation, operator, n1, n2, n3, n4, checkNeg
  8.   global negative
  9.   send mouseUp to btn operation
  10.   send mouseUp to btn operator
  11.   global number, digits, brackets, negative, decimal
  12.   put n1 into number
  13.   put n1 into cd fld "number"
  14.   put n2 into digits
  15.   put n2 into cd fld "digits"
  16.   put n3 into brackets
  17.   put n3 into cd fld "brackets"
  18.   put n4 into decimal
  19.   put n4 into cd fld "decimal"
  20.   if checkNeg then
  21.     set hilite of btn "Negative" to true
  22.     put true into negative
  23.   else
  24.     set hilite of btn "Negative" to false
  25.     put false into negative
  26.   end if
  27. end complexity
  28.  
  29. function doOther
  30. ShowDialog 2,200,"","","","",1,1
  31. get the result
  32. return it
  33. end doOther
  34.  
  35. on GetNumber limit
  36.   get PopUp ("┬⌐1988SDrazga",220,rect of the target,x)
  37.   if it is empty then exit GetNumber
  38.   put it into choice
  39.   if offset("Other", choice) > 0 then put doOther() into choice
  40.   if choice + 0 <= limit then exit GetNumber
  41.   put choice into the target
  42. end GetNumber
  43.  
  44.  
  45.  
  46.  
  47. -- part 1 (button)
  48. -- low flags: 00
  49. -- high flags: C006
  50. -- rect: left=31 top=73 right=89 bottom=86
  51. -- title width / last selected line: 0
  52. -- icon id / first selected line: 0 / 0
  53. -- text alignment: 1
  54. -- font id: 0
  55. -- text size: 12
  56. -- style flags: 0
  57. -- line height: 16
  58. -- part name: Easy
  59. ----- HyperTalk script -----
  60. on mouseUp
  61.   global degree
  62.   put 1 into degree
  63.   selectMe "Medium,hard,very hard"
  64.   complexity "single","subtraction",2,1,0,0,false
  65. end mouseUp
  66.  
  67.  
  68.  
  69. -- part 2 (button)
  70. -- low flags: 00
  71. -- high flags: 8006
  72. -- rect: left=93 top=73 right=90 bottom=167
  73. -- title width / last selected line: 0
  74. -- icon id / first selected line: 0 / 0
  75. -- text alignment: 1
  76. -- font id: 0
  77. -- text size: 12
  78. -- style flags: 0
  79. -- line height: 16
  80. -- part name: Medium
  81. ----- HyperTalk script -----
  82. on mouseUp
  83.   global degree
  84.   put 2 into degree
  85.   selectMe "easy,hard,very hard"
  86.   complexity "single","division",3,2,0,0,false
  87. end mouseUp
  88.  
  89.  
  90.  
  91. -- part 3 (button)
  92. -- low flags: 00
  93. -- high flags: 8006
  94. -- rect: left=31 top=91 right=107 bottom=84
  95. -- title width / last selected line: 0
  96. -- icon id / first selected line: 0 / 0
  97. -- text alignment: 1
  98. -- font id: 0
  99. -- text size: 12
  100. -- style flags: 0
  101. -- line height: 16
  102. -- part name: Hard
  103. ----- HyperTalk script -----
  104. on mouseUp
  105.   global degree
  106.   put 3 into degree
  107.   selectMe "easy,Medium,very hard"
  108.   complexity "mixture","multiplication",4,2,1,1,true
  109. end mouseUp
  110.  
  111.  
  112.  
  113. -- part 4 (button)
  114. -- low flags: 00
  115. -- high flags: 8006
  116. -- rect: left=93 top=91 right=107 bottom=176
  117. -- title width / last selected line: 0
  118. -- icon id / first selected line: 0 / 0
  119. -- text alignment: 1
  120. -- font id: 0
  121. -- text size: 12
  122. -- style flags: 0
  123. -- line height: 16
  124. -- part name: Very Hard
  125. ----- HyperTalk script -----
  126. on mouseUp
  127.   global degree
  128.   put 4 into degree
  129.   selectMe "easy,Medium,hard"
  130.   complexity "mixture","division",6,3,3,2,true
  131. end mouseUp
  132.  
  133.  
  134.  
  135. -- part 5 (button)
  136. -- low flags: 00
  137. -- high flags: C006
  138. -- rect: left=237 top=71 right=93 bottom=337
  139. -- title width / last selected line: 0
  140. -- icon id / first selected line: 0 / 0
  141. -- text alignment: 1
  142. -- font id: 0
  143. -- text size: 12
  144. -- style flags: 0
  145. -- line height: 16
  146. -- part name: Single
  147. ----- HyperTalk script -----
  148. on mouseUp
  149.   global operation
  150.   put 1 into operation
  151.   selectMe "mixture"
  152. end mouseUp
  153.  
  154.  
  155.  
  156. -- part 6 (button)
  157. -- low flags: 00
  158. -- high flags: 8006
  159. -- rect: left=355 top=71 right=93 bottom=455
  160. -- title width / last selected line: 0
  161. -- icon id / first selected line: 0 / 0
  162. -- text alignment: 1
  163. -- font id: 0
  164. -- text size: 12
  165. -- style flags: 0
  166. -- line height: 16
  167. -- part name: Mixture
  168. ----- HyperTalk script -----
  169. on mouseUp
  170.   global operation
  171.   put 2 into operation
  172.   selectMe "single"
  173. end mouseUp
  174.  
  175.  
  176.  
  177. -- part 7 (button)
  178. -- low flags: 00
  179. -- high flags: E006
  180. -- rect: left=237 top=99 right=115 bottom=337
  181. -- title width / last selected line: 0
  182. -- icon id / first selected line: 0 / 0
  183. -- text alignment: 1
  184. -- font id: 3
  185. -- text size: 12
  186. -- style flags: 0
  187. -- line height: 16
  188. -- part name: Addition
  189. ----- HyperTalk script -----
  190. on mouseUp
  191.   selectMe "Subtraction,multiplication,division"
  192.   global operator
  193.   put 1 into operator
  194. end mouseUp
  195.  
  196.  
  197.  
  198. -- part 8 (button)
  199. -- low flags: 00
  200. -- high flags: A006
  201. -- rect: left=355 top=99 right=115 bottom=455
  202. -- title width / last selected line: 0
  203. -- icon id / first selected line: 0 / 0
  204. -- text alignment: 1
  205. -- font id: 3
  206. -- text size: 12
  207. -- style flags: 0
  208. -- line height: 16
  209. -- part name: Subtraction
  210. ----- HyperTalk script -----
  211. on mouseUp
  212.   selectMe "addition,multiplication,division"
  213.   global operator
  214.   put 2 into operator
  215. end mouseUp
  216.  
  217.  
  218.  
  219. -- part 9 (button)
  220. -- low flags: 00
  221. -- high flags: A006
  222. -- rect: left=237 top=117 right=134 bottom=348
  223. -- title width / last selected line: 0
  224. -- icon id / first selected line: 0 / 0
  225. -- text alignment: 1
  226. -- font id: 3
  227. -- text size: 12
  228. -- style flags: 0
  229. -- line height: 16
  230. -- part name: Multiplication
  231. ----- HyperTalk script -----
  232. on mouseUp
  233.   selectMe "addition,Subtraction,division"
  234.   global operator
  235.   put 3 into operator
  236. end mouseUp
  237.  
  238.  
  239.  
  240. -- part 10 (button)
  241. -- low flags: 00
  242. -- high flags: A006
  243. -- rect: left=355 top=117 right=134 bottom=455
  244. -- title width / last selected line: 0
  245. -- icon id / first selected line: 0 / 0
  246. -- text alignment: 1
  247. -- font id: 3
  248. -- text size: 12
  249. -- style flags: 0
  250. -- line height: 16
  251. -- part name: Division
  252. ----- HyperTalk script -----
  253. on mouseUp
  254.   selectMe "addition,Subtraction,multiplication"
  255.   global operator
  256.   put 4 into operator
  257. end mouseUp
  258.  
  259.  
  260.  
  261. -- part 11 (button)
  262. -- low flags: 00
  263. -- high flags: A003
  264. -- rect: left=269 top=243 right=296 bottom=342
  265. -- title width / last selected line: 0
  266. -- icon id / first selected line: 27056 / 27056
  267. -- text alignment: 1
  268. -- font id: 3
  269. -- text size: 9
  270. -- style flags: 0
  271. -- line height: 12
  272. -- part name: Do it!
  273. ----- HyperTalk script -----
  274. on mouseUp
  275.   global operation, negative, expression
  276.   set cursor to busy
  277.   add 1 to cd fld total
  278.   put empty into cd fld comments
  279.   put empty into cd fld "PercRight"
  280.   put -1 into realAnswer
  281.   lock screen
  282.   if negative is true then
  283.     repeat until realAnswer is not "INF"
  284.       if operation=1 then
  285.         single
  286.       else
  287.         mixture
  288.       end if
  289.       put cd fld "real Answer" into realAnswer
  290.     end repeat
  291.   else
  292.     repeat until (realAnswer>=0 and realAnswer is not "INF")
  293.       if operation=1 then
  294.         single
  295.       else
  296.         mixture
  297.       end if
  298.       put cd fld "real Answer" into realAnswer
  299.     end repeat
  300.   end if
  301.   unlock screen
  302.   set the name of btn id 4 of cd 2 to "Clear All"
  303.   put expression && "=?" into cd fld question
  304.   select char 1 of cd fld "answer"
  305. end mouseUp
  306.  
  307. on single
  308.   global operator, digits, number, OperString, decimal,expression
  309.   put random((10^digits)-1)/10^decimal into expression
  310.   repeat for (number-1)
  311.     set cursor to busy
  312.     put space & word operator of operString & space after expression
  313.     put random(10^digits-1)/10^decimal after expression
  314.   end repeat
  315.   put expression & return after cd fld 1 of cd 2
  316.   put "put" && expression && "into cd fld" && quote & "real answer" & quote into cd fld working
  317.   do cd fld working
  318.   put empty into cd fld "answer"
  319. end single
  320.  
  321. on mixture
  322.   global operator,digits, number,brackets,OperString,decimal,expression
  323.  
  324.   put random((10^digits)-1)/10^decimal into expression
  325.   repeat for (number-1)
  326.     put space & random((10^digits)-1)/10^decimal after expression
  327.   end repeat
  328.   put expression into tmpExpress
  329.  
  330.   repeat for brackets
  331.     put random(number-1) into loc1
  332.     put random(number-loc1)+loc1 into loc2
  333.     if not (loc1=1 and loc2=number) then
  334.       put "(" before word loc1 of expression
  335.       put ")" after word loc2 of expression
  336.     end if
  337.   end repeat
  338.  
  339.   repeat with i=1 to number
  340.     put "(" & word i of tmpExpress & ")" into tmpWord
  341.     if tmpWord is in expression then
  342.       get offset(tmpWord,expression)
  343.       if it<>0 then
  344.         put word i of tmpExpress into char it to it-1+length(tmpWord) of expression
  345.       end if
  346.     end if
  347.   end repeat
  348.  
  349.   repeat with i=1 to (number-1)
  350.     put word random(operator) of OperString before word i+1 of expression
  351.   end repeat
  352.  
  353.   put expression & return after cd fld 1 of cd 2
  354.   put "put" && expression && "into cd fld" && quote & "real answer" & quote into cd fld working
  355.   do cd fld working
  356.   put empty into cd fld "answer"
  357. end mixture
  358.  
  359.  
  360.  
  361.  
  362. -- part 12 (field)
  363. -- low flags: 01
  364. -- high flags: 0000
  365. -- rect: left=49 top=160 right=209 bottom=367
  366. -- title width / last selected line: 0
  367. -- icon id / first selected line: 0 / 0
  368. -- text alignment: 0
  369. -- font id: 3
  370. -- text size: 14
  371. -- style flags: 256
  372. -- line height: 24
  373. -- part name: Question
  374.  
  375.  
  376. -- part 13 (field)
  377. -- low flags: 02
  378. -- high flags: 4000
  379. -- rect: left=49 top=229 right=254 bottom=193
  380. -- title width / last selected line: 0
  381. -- icon id / first selected line: 0 / 0
  382. -- text alignment: 0
  383. -- font id: 3
  384. -- text size: 14
  385. -- style flags: 256
  386. -- line height: 24
  387. -- part name: answer
  388. ----- HyperTalk script -----
  389. on closeField
  390.   global accuracy
  391.   if abs(me-cd fld "real answer")<0.5*10^(-accuracy) then
  392.     put "Well Done!" into cd fld "Comments"
  393.     put "R " before last line of cd fld 1 of cd 2
  394.     add 1 to cd fld "right"
  395.     put (cd fld right)*100/(cd fld total) into cd fld PercRight
  396.   else
  397.     put empty into me
  398.     put "Sorry, please try again!" into cd fld "Comments"
  399.     put "W " before last line of cd fld 1 of cd 2
  400.     add 1 to cd fld "missed"
  401.     put (cd fld right)*100/(cd fld total) into cd fld PercRight
  402.     select char 1 of me
  403.   end if
  404. end closeField
  405.  
  406.  
  407.  
  408. -- part 14 (field)
  409. -- low flags: 01
  410. -- high flags: 0004
  411. -- rect: left=268 top=138 right=154 bottom=291
  412. -- title width / last selected line: 0
  413. -- icon id / first selected line: 0 / 0
  414. -- text alignment: 1
  415. -- font id: 3
  416. -- text size: 10
  417. -- style flags: 256
  418. -- line height: 13
  419. -- part name: Number
  420. ----- HyperTalk script -----
  421. on mouseDown
  422.   getNumber 1
  423.   global Number
  424.   put me into Number
  425. end mouseDown
  426.  
  427.  
  428.  
  429. -- part 17 (field)
  430. -- low flags: 80
  431. -- high flags: 4000
  432. -- rect: left=48 top=187 right=254 bottom=390
  433. -- title width / last selected line: 0
  434. -- icon id / first selected line: 0 / 0
  435. -- text alignment: 0
  436. -- font id: 20
  437. -- text size: 18
  438. -- style flags: 0
  439. -- line height: 24
  440. -- part name: working
  441.  
  442.  
  443. -- part 18 (button)
  444. -- low flags: 00
  445. -- high flags: A003
  446. -- rect: left=38 top=296 right=323 bottom=160
  447. -- title width / last selected line: 0
  448. -- icon id / first selected line: 0 / 0
  449. -- text alignment: 1
  450. -- font id: 0
  451. -- text size: 12
  452. -- style flags: 0
  453. -- line height: 16
  454. -- part name: Show the Answer
  455. ----- HyperTalk script -----
  456. on mouseUp
  457.   get cd fld "real answer"
  458.   set numberFormat to  cd fld "Nformat"
  459.   put it+0 into cd fld "answer"
  460. end mouseUp
  461.  
  462.  
  463.  
  464. -- part 19 (field)
  465. -- low flags: 80
  466. -- high flags: 4000
  467. -- rect: left=193 top=229 right=253 bottom=320
  468. -- title width / last selected line: 0
  469. -- icon id / first selected line: 0 / 0
  470. -- text alignment: 65535
  471. -- font id: 20
  472. -- text size: 18
  473. -- style flags: 0
  474. -- line height: 24
  475. -- part name: real Answer
  476.  
  477.  
  478. -- part 20 (field)
  479. -- low flags: 01
  480. -- high flags: 0004
  481. -- rect: left=327 top=138 right=154 bottom=349
  482. -- title width / last selected line: 0
  483. -- icon id / first selected line: 0 / 0
  484. -- text alignment: 1
  485. -- font id: 3
  486. -- text size: 10
  487. -- style flags: 256
  488. -- line height: 13
  489. -- part name: digits
  490. ----- HyperTalk script -----
  491. on mouseDown
  492.   getNumber 0
  493.   global digits
  494.   put me into digits
  495. end mouseDown
  496.  
  497.  
  498.  
  499. -- part 27 (field)
  500. -- low flags: 01
  501. -- high flags: 0004
  502. -- rect: left=397 top=139 right=156 bottom=418
  503. -- title width / last selected line: 0
  504. -- icon id / first selected line: 0 / 0
  505. -- text alignment: 1
  506. -- font id: 3
  507. -- text size: 10
  508. -- style flags: 256
  509. -- line height: 13
  510. -- part name: Brackets
  511. ----- HyperTalk script -----
  512. on mouseDown
  513.   getNumber -1
  514.   global Brackets
  515.   put me into Brackets
  516. end mouseDown
  517.  
  518.  
  519.  
  520. -- part 28 (button)
  521. -- low flags: 00
  522. -- high flags: A005
  523. -- rect: left=406 top=154 right=174 bottom=481
  524. -- title width / last selected line: 0
  525. -- icon id / first selected line: 0 / 0
  526. -- text alignment: 1
  527. -- font id: 3
  528. -- text size: 10
  529. -- style flags: 0
  530. -- line height: 13
  531. -- part name: Negative
  532. ----- HyperTalk script -----
  533. on mouseUp
  534.   global negative
  535.   if the hilite of me is true then put true into negative
  536.   else put false into negative
  537. end mouseUp
  538.  
  539.  
  540.  
  541. -- part 29 (button)
  542. -- low flags: 00
  543. -- high flags: A003
  544. -- rect: left=163 top=296 right=324 bottom=345
  545. -- title width / last selected line: 0
  546. -- icon id / first selected line: 0 / 0
  547. -- text alignment: 1
  548. -- font id: 0
  549. -- text size: 12
  550. -- style flags: 0
  551. -- line height: 16
  552. -- part name: Show Record of Exercises
  553. ----- HyperTalk script -----
  554. on mouseUp
  555.   go to card id 2270
  556. end mouseUp
  557.  
  558.  
  559.  
  560. -- part 32 (field)
  561. -- low flags: 01
  562. -- high flags: 0004
  563. -- rect: left=462 top=138 right=155 bottom=482
  564. -- title width / last selected line: 0
  565. -- icon id / first selected line: 0 / 0
  566. -- text alignment: 1
  567. -- font id: 3
  568. -- text size: 10
  569. -- style flags: 256
  570. -- line height: 13
  571. -- part name: Decimal
  572. ----- HyperTalk script -----
  573. on mouseDown
  574.   getNumber -1
  575.   global decimal
  576.   put me into decimal
  577. end mouseDown
  578.  
  579.  
  580.  
  581. -- part 33 (field)
  582. -- low flags: 03
  583. -- high flags: 0000
  584. -- rect: left=427 top=204 right=224 bottom=463
  585. -- title width / last selected line: 0
  586. -- icon id / first selected line: 0 / 0
  587. -- text alignment: 1
  588. -- font id: 3
  589. -- text size: 10
  590. -- style flags: 256
  591. -- line height: 16
  592. -- part name: total
  593.  
  594.  
  595. -- part 34 (field)
  596. -- low flags: 03
  597. -- high flags: 0000
  598. -- rect: left=427 top=225 right=245 bottom=463
  599. -- title width / last selected line: 0
  600. -- icon id / first selected line: 0 / 0
  601. -- text alignment: 1
  602. -- font id: 3
  603. -- text size: 10
  604. -- style flags: 256
  605. -- line height: 16
  606. -- part name: right
  607.  
  608.  
  609. -- part 35 (field)
  610. -- low flags: 03
  611. -- high flags: 0000
  612. -- rect: left=427 top=245 right=265 bottom=463
  613. -- title width / last selected line: 0
  614. -- icon id / first selected line: 0 / 0
  615. -- text alignment: 1
  616. -- font id: 3
  617. -- text size: 10
  618. -- style flags: 256
  619. -- line height: 16
  620. -- part name: missed
  621.  
  622.  
  623. -- part 36 (field)
  624. -- low flags: 03
  625. -- high flags: 0000
  626. -- rect: left=427 top=265 right=284 bottom=463
  627. -- title width / last selected line: 0
  628. -- icon id / first selected line: 0 / 0
  629. -- text alignment: 1
  630. -- font id: 3
  631. -- text size: 10
  632. -- style flags: 256
  633. -- line height: 16
  634. -- part name: PercRight
  635.  
  636.  
  637. -- part 37 (button)
  638. -- low flags: 00
  639. -- high flags: A003
  640. -- rect: left=409 top=295 right=323 bottom=489
  641. -- title width / last selected line: 0
  642. -- icon id / first selected line: 0 / 0
  643. -- text alignment: 1
  644. -- font id: 0
  645. -- text size: 12
  646. -- style flags: 0
  647. -- line height: 16
  648. -- part name: Restart
  649. ----- HyperTalk script -----
  650. on mouseUp
  651.   put 0 into cd fld "total"
  652.   put 0 into cd fld "right"
  653.   put 0 into cd fld "missed"
  654.   put 0 into cd fld "percRight"
  655. end mouseUp
  656.  
  657.  
  658.  
  659. -- part 38 (field)
  660. -- low flags: 03
  661. -- high flags: 4000
  662. -- rect: left=103 top=261 right=285 bottom=267
  663. -- title width / last selected line: 0
  664. -- icon id / first selected line: 0 / 0
  665. -- text alignment: 0
  666. -- font id: 3
  667. -- text size: 12
  668. -- style flags: 0
  669. -- line height: 18
  670. -- part name: comments
  671.  
  672.  
  673. -- part 39 (field)
  674. -- low flags: 80
  675. -- high flags: 4000
  676. -- rect: left=105 top=217 right=229 bottom=216
  677. -- title width / last selected line: 0
  678. -- icon id / first selected line: 0 / 0
  679. -- text alignment: 0
  680. -- font id: 3
  681. -- text size: 9
  682. -- style flags: 0
  683. -- line height: 12
  684. -- part name: Nformat
  685.  
  686.  
  687. -- part 40 (button)
  688. -- low flags: 00
  689. -- high flags: A000
  690. -- rect: left=97 top=206 right=218 bottom=109
  691. -- title width / last selected line: 0
  692. -- icon id / first selected line: 0 / 0
  693. -- text alignment: 1
  694. -- font id: 0
  695. -- text size: 12
  696. -- style flags: 0
  697. -- line height: 16
  698. -- part name: *
  699. ----- HyperTalk script -----
  700. on mouseUp
  701.   global accuracy
  702.   ask "Accurate up to X digits after decimal point?" with accuracy
  703.   put it into cd fld "accuracy"
  704.   put it into accuracy
  705.   if it is empty then
  706.     put "0.######" into cd fld Nformat
  707.     put 6 into accuracy
  708.     exit mouseUp
  709.   end if
  710.   put "0." into format
  711.   repeat for it
  712.     put "0" after format
  713.   end repeat
  714.   put format into cd fld "Nformat"
  715. end mouseUp
  716.  
  717.  
  718.  
  719. -- part 41 (field)
  720. -- low flags: 80
  721. -- high flags: 4000
  722. -- rect: left=216 top=217 right=230 bottom=239
  723. -- title width / last selected line: 0
  724. -- icon id / first selected line: 0 / 0
  725. -- text alignment: 0
  726. -- font id: 3
  727. -- text size: 9
  728. -- style flags: 0
  729. -- line height: 12
  730. -- part name: Accuracy
  731.  
  732.  
  733. -- part 42 (button)
  734. -- low flags: 00
  735. -- high flags: 2000
  736. -- rect: left=344 top=284 right=323 bottom=395
  737. -- title width / last selected line: 0
  738. -- icon id / first selected line: 23078 / 23078
  739. -- text alignment: 1
  740. -- font id: 0
  741. -- text size: 12
  742. -- style flags: 0
  743. -- line height: 16
  744. -- part name: ?
  745. ----- HyperTalk script -----
  746. on mouseUp
  747.   lock screen
  748.   go to cd id 4237
  749.   set the scroll of fld "study history" to 440
  750.   unlock screen with dissolve
  751. end mouseUp
  752.  
  753.  
  754.  
  755. -- part 45 (button)
  756. -- low flags: 00
  757. -- high flags: 2000
  758. -- rect: left=350 top=29 right=54 bottom=384
  759. -- title width / last selected line: 0
  760. -- icon id / first selected line: 19678 / 19678
  761. -- text alignment: 1
  762. -- font id: 0
  763. -- text size: 12
  764. -- style flags: 0
  765. -- line height: 16
  766. -- part name: About...
  767. ----- HyperTalk script -----
  768. on mouseUp
  769.   lock screen
  770.   go to cd id 4237
  771.   set the scroll of fld "study history" to 0
  772.   unlock screen with dissolve
  773. end mouseUp
  774.  
  775.  
  776.  
  777. -- part contents for card part 14
  778. ----- text -----
  779. 2
  780.  
  781. -- part contents for card part 12
  782. ----- text -----
  783. 9 + 8 =?
  784.  
  785. -- part contents for card part 17
  786. ----- text -----
  787. put 9 + 8 into cd fld "real answer"
  788.  
  789. -- part contents for card part 19
  790. ----- text -----
  791. 17
  792.  
  793. -- part contents for card part 20
  794. ----- text -----
  795. 1
  796.  
  797. -- part contents for card part 27
  798. ----- text -----
  799. 0
  800.  
  801. -- part contents for card part 32
  802. ----- text -----
  803. 0
  804.  
  805. -- part contents for card part 33
  806. ----- text -----
  807. 0
  808.  
  809. -- part contents for card part 34
  810. ----- text -----
  811. 0
  812.  
  813. -- part contents for card part 35
  814. ----- text -----
  815. 0
  816.  
  817. -- part contents for card part 39
  818. ----- text -----
  819. 0.######
  820.  
  821. -- part contents for card part 36
  822. ----- text -----
  823. 0