| 85 | This exercise is a set of true/false questions; the 0/1 arguments indicate which are true. |
| 86 | |
| 87 | Edit conifer.php to contain: |
| 88 | {{{ |
| 89 | function both_lessons() { |
| 90 | return sequence( |
| 91 | name('both lessons'), |
| 92 | lesson( |
| 93 | name('Introduction'), |
| 94 | filename('conifer_intro.php') |
| 95 | ), |
| 96 | lesson( |
| 97 | name('Conifers and deciduous trees'), |
| 98 | filename('conifer_decid.php') |
| 99 | ) |
| 100 | ); |
| 101 | } |
| 102 | |
| 103 | function second_lesson() { |
| 104 | return lesson( |
| 105 | name('Conifers and deciduous trees'), |
| 106 | filename('conifer_decid.php') |
| 107 | ); |
| 108 | } |
| 109 | |
| 110 | function exercises() { |
| 111 | return exercise_set( |
| 112 | name('exercise set 1'), |
| 113 | number(2), |
| 114 | exercise( |
| 115 | filename('conifer_ex1.php') |
| 116 | ), |
| 117 | exercise( |
| 118 | filename('conifer_ex2.php') |
| 119 | ), |
| 120 | repeat(.3, both_lessons(), REVIEW), |
| 121 | repeat(.7, second_lesson(), REVIEW|REPEAT), |
| 122 | repeat(1, null, REPEAT|NEXT), |
| 123 | refresh(array(7, 14, 28)) |
| 124 | ); |
| 125 | } |
| 126 | |
| 127 | return sequence( |
| 128 | name('course'), |
| 129 | both_lessons(), |
| 130 | exercises() |
| 131 | ); |
| 132 | |
| 133 | }}} |
| 134 | |
| 135 | |