forked from Khan/khan-exercises
/
fraction_word_problems_1.html
60 lines (55 loc) · 3.57 KB
/
fraction_word_problems_1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html data-require="math word-problems">
<head>
<title>Fraction word problems 1</title>
<script src="../khan-exercise.js"></script>
</head>
<body>
<div class="exercise">
<div class="vars">
<var id="A">randRange( 1, 5 )</var>
<var id="B">randRange( 1, 5 )</var>
<var id="LEFT">randRange( 1, 5 )</var>
<var id="TOTAL">A + B + LEFT</var>
</div>
<div class="problems">
<div id="show-total-want-eaten">
<p class="problem"><var>person( 1 )</var> ate <var>plural( A, "slice" )</var> of <var>pizza( 1 )</var>, and <var>person( 2 )</var> ate <var>plural( B, "slice" )</var>.</p>
<p class="question">If there were initially <var>TOTAL</var> slices, what fraction of the <var>pizza( 1 )</var> was eaten?</p>
<p class="solution" data-type="rational" data-simplify="optional"><var>(A + B) / TOTAL</var></p>
<div class="hints">
<p id="first">Together they ate <var>A + B</var> out of <var>TOTAL</var> slices.</p>
<p id="second">They ate <code>\dfrac{<var>A + B</var>}{<var>TOTAL</var>}</code> of the <var>pizza( 1 )</var>.</p>
</div>
</div>
<div id="show-left-want-eaten" data-type="show-total-want-eaten">
<p class="question">If there were <var>plural(LEFT, "slice")</var> remaining, what fraction of the pizza was eaten?</p>
<div class="hints" data-apply="appendContents">
<p id="first">Together they ate <var>A + B</var> slices with <var>plural( LEFT, "slice" )</var> remaining, which means they ate <var>A + B</var> out of <var>TOTAL</var> slices.</p>
</div>
</div>
<div id="show-first-want-eaten" data-type="show-total-want-eaten">
<p class="question">If <var>person( 1 )</var> ate <code>\dfrac{<var>A</var>}{<var>TOTAL</var>}</code> of the <var>pizza( 1 )</var>, what fraction of the pizza was eaten?</p>
<div class="hints" data-apply="appendContents">
<p id="first">If <var>plural( A, "slice")</var> represents <code>\dfrac{<var>A</var>}{<var>TOTAL</var>}</code> of the <var>pizza( 1 )</var>, there must have been a total of <var>TOTAL</var> slices. <var>person( 1 )</var> and <var>person( 2 )</var> together ate <var>A + B</var> out of <var>TOTAL</var> slices.</p>
</div>
</div>
<div id="show-total-want-left">
<p class="problem"><var>person( 1 )</var> ate <var>plural( A, "slice" )</var> of <var>pizza( 1 )</var>, and <var>person( 2 )</var> ate <var>plural( B, "slice" )</var>.</p>
<p class="question">If there were initially <var>TOTAL</var> slices, what fraction of the <var>pizza( 1 )</var> is remaining?</p>
<p class="solution" data-type="rational" data-simplify="optional"><var>LEFT / TOTAL</var></p>
<div class="hints">
<p id="first">Together they ate <var>A + B</var> out of <var>TOTAL</var> slices, which leaves <var>plural( LEFT, "slice" )</var> remaining.</p>
<p id="second">There is <code>\dfrac{<var>LEFT</var>}{<var>TOTAL</var>}</code> of the <var>pizza( 1 )</var> remaining.</p>
</div>
</div>
<div id="show-first-want-left" data-type="show-total-want-left">
<p class="question">If <var>person( 1 )</var> ate <code>\dfrac{<var>A</var>}{<var>TOTAL</var>}</code> of the <var>pizza( 1 )</var>, what fraction of the pizza is remaining?</p>
<div class="hints" data-apply="appendContents">
<p id="first">If <var>plural( A, "slice" )</var> represents <code>\dfrac{<var>A</var>}{<var>TOTAL</var>}</code> of the <var>pizza( 1 )</var>, there must have been a total of <var>TOTAL</var> slices. Together, they ate <var>A + B</var> out of <var>TOTAL</var> slices, which leaves <var>plural( LEFT, "slice" )</var> remaining.</p>
</div>
</div>
</div>
</div>
</body>
</html>