Khan/khan-exercises

Subversion checkout URL

You can clone with
or
.
Older
100644 143 lines (141 sloc) 8.651 kb
 f8eb156 Add exercise -- counting 1 marcia authored Oct 6, 2011 1 ced362c Run the exercise cleaner. jeresig authored Apr 23, 2013 2 3 4 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 5 Counting 1 ac1415e Use requirejs for module loading spicyj authored Mar 5, 2014 6 f8eb156 Add exercise -- counting 1 marcia authored Oct 7, 2011 7 8 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 9
10
11
12
13 randRange( 20, 50 ) 14 randRange( 20, 40 ) 15 START + ANSWER - 1 de19411 Manually i18nize all of the minor exercises xymostech authored Jun 3, 2013 16 randRange(0, 1) === 0 17 DO_BOOL ? \$._("problems") : randFromArray([\$._("pages"), \$._("papers"), \$._("articles")]) a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 18 randRange(0, 3) 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 19
a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 20

21 22 person(1) had to do PROBLEMS START 23 through END for homework last week. 24 25 person(1) had to do PROBLEMS START 26 through END for homework tonight. 27 28 person(1) was assigned PROBLEMS START 29 through END for homework last week. 30 31 person(1) was assigned PROBLEMS START 32 through END for homework tonight. de19411 Manually i18nize all of the minor exercises xymostech authored Jun 4, 2013 33 a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 34

35 36 person(1) had to read PROBLEMS START 37 through END for homework last week. 38 39 person(1) had to read PROBLEMS START 40 through END for homework tonight. 41 42 person(1) was assigned PROBLEMS START 43 through END for homework last week. 44 45 person(1) was assigned PROBLEMS START 46 through END for homework tonight. 47 48

de19411 Manually i18nize all of the minor exercises xymostech authored Jun 4, 2013 49

50 51 If person( 1 ) did all of the PROBLEMS he was assigned, how many PROBLEMS did he do? 52 53 If person( 1 ) read all of the PROBLEMS he was assigned, how many PROBLEMS did he read? 54 55

56 57 If person( 1 ) did all of the PROBLEMS she was assigned, how many PROBLEMS did she do? 58 59 If person( 1 ) read all of the PROBLEMS she was assigned, how many PROBLEMS did she read? 60 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 61

62 ced362c Run the exercise cleaner. jeresig authored Apr 23, 2013 63
64

4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 65
66
a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 67

68 Instead of counting PROBLEMS START through END, 69 we can subtract START - 1 from each number. 70

71

Now the PROBLEMS are 1 through ANSWER.

de19411 Manually i18nize all of the minor exercises xymostech authored Jun 4, 2013 72

a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 73 So person(1) did ANSWER PROBLEMS. de19411 Manually i18nize all of the minor exercises xymostech authored Jun 4, 2013 74

a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 75 So person(1) read ANSWER PROBLEMS. de19411 Manually i18nize all of the minor exercises xymostech authored Jun 4, 2013 76

77

78 a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 79 Notice that he did ANSWER and not ANSWER - 1 PROBLEMS. de19411 Manually i18nize all of the minor exercises xymostech authored Jun 4, 2013 80 a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 81 Notice that he read ANSWER and not ANSWER - 1 PROBLEMS. de19411 Manually i18nize all of the minor exercises xymostech authored Jun 4, 2013 82 83

84 a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 85 Notice that she did ANSWER and not ANSWER - 1 PROBLEMS. de19411 Manually i18nize all of the minor exercises xymostech authored Jun 4, 2013 86 a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 87 Notice that she read ANSWER and not ANSWER - 1 PROBLEMS. de19411 Manually i18nize all of the minor exercises xymostech authored Jun 4, 2013 88 89

4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 90
91
92
93
94 randRange( 5, 15 ) 95
96

A baker has a whole {baguette|loaf of bread}.

a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 97

98 How many parallel cuts must {he|she} make to have exactly NUM even slices? 99

ced362c Run the exercise cleaner. jeresig authored Apr 23, 2013 100
101

NUM -1 cuts

4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 102
103
104

One cut will make two slices, two cuts will make three slices, and so on.

a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 105

Therefore, we need NUM - 1 cuts to make NUM slices.

4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 106
107
108
109
110 randRange( 10, 20 ) 111
112

person( 1 ) is building a straight fence, with posts one meter apart.

a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 113

114 If the fence is LENGTH meters long, how many fence posts does he need? 115

116 If the fence is LENGTH meters long, how many fence posts does she need? 117

ced362c Run the exercise cleaner. jeresig authored Apr 23, 2013 118
119

LENGTH + 1 fence posts

4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 120
121
a129397 Specify that cuts are parallel and make numbers mathy petercollingridge authored Sep 25, 2014 122

123 If the fence is one meter long, he needs two posts (one for each end). 124

125 If the fence is one meter long, she needs two posts (one for each end). 126

127

128 If the fence is two meters long, then he needs three posts, and so on. 129

130 If the fence is two meters long, then she needs three posts, and so on. 131

132

133 Therefore, he needs LENGTH + 1 posts for a LENGTH meter fence. 134

135 Therefore, she needs LENGTH + 1 posts for a LENGTH meter fence. 136

4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 137
138
139
140
ced362c Run the exercise cleaner. jeresig authored Apr 23, 2013 141 142
Something went wrong with that request. Please try again.