This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 863
/
writing_proportions.html
85 lines (80 loc) · 7.57 KB
/
writing_proportions.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html data-require="math math-format word-problems">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Writing proportions</title>
<script data-main="../local-only/main.js" src="../local-only/require.js"></script>
</head>
<body>
<div class="exercise">
<div class="problems">
<div>
<div class="vars">
<var id="N1">randRange( 2, 10 )</var>
<var id="N2">randRangeExclude( 2, 15, [ N1 ] )</var>
<var id="C">localeToFixed( N1 * randRange( 80, 199 ) / 100, 2)</var>
<var id="SOLUTIONS">
(function() {
var solutions = [
"\\dfrac{" + N1 + "}{\\$" + C + "} = \\dfrac{" + N2 + "}{x}",
"\\dfrac{" + N2 + "}{x} = \\dfrac{" + N1 + "}{\\$" + C + "}",
"\\dfrac{" + N1 + "}{" + N2 + "} = \\dfrac{\\$" + C + "}{x}",
"\\dfrac{x}{" + N2 + "} = \\dfrac{\\$" + C + "}{" + N1 + "}"
];
return solutions;
})()
</var>
<var id="IDX">randFromArray([0, 1, 2, 2, 2, 3])</var>
<var id="SOLUTION">SOLUTIONS[ IDX ]</var>
</div>
<p class="problem"><span data-if="isSingular(N1)" data-unwrap=""><var>N1</var> <var>deskItem( 0 )</var> cost $<var>C</var>.</span><span data-else="" data-unwrap=""><var>N1</var> <var>plural_form(deskItem( 0 ), N1)</var> cost $<var>C</var>.</span></p>
<p class="question"><span data-if="isSingular(N2)" data-unwrap="">Which equation would help determine the cost of <var>N2</var> <var>deskItem( 0 )</var>?</span><span data-else="" data-unwrap="">Which equation would help determine the cost of <var>N2</var> <var>plural_form(deskItem( 0 ), N2)</var>?</span></p>
<p class="solution"><code><var>SOLUTION</var></code></p>
<ul class="choices" data-none="true" data-show="5">
<li><code>\dfrac{<var>N2</var>}{\$<var>C</var>} = \dfrac{x}{<var>N1</var>}</code></li>
<li><code>\dfrac{<var>N2</var>}{<var>N1</var>} = \dfrac{\$<var>C</var>}{x}</code></li>
<li><code>\dfrac{<var>N1</var>}{<var>N2</var>} = \dfrac{x}{\$<var>C</var>}</code></li>
<li><code>\dfrac{x}{<var>N2</var>} = \dfrac{<var>N1</var>}{\$<var>C</var>}</code></li>
<li><code>\dfrac{<var>N2</var>}{x} = \dfrac{\$<var>C</var>}{<var>N1</var>}</code></li>
</ul>
<div class="hints">
<p>There are several equations that could help determine the cost, each with a slightly different approach.</p>
<div data-if="IDX === 0" data-unwrap="">
<p data-if="isSingular(N1)">We can write the fact that <var>N1</var> <var>deskItem( 0 )</var> cost $<var>C</var> as a proportion:</p><p data-else="">We can write the fact that <var>N1</var> <var>plural_form(deskItem( 0 ), N1)</var> cost $<var>C</var> as a proportion:</p>
<p><code>\dfrac{<var>N1</var>}{\$<var>C</var>}</code></p>
<p data-if="isSingular(N2)">Let <code>x</code> represent the unknown cost of <var>N2</var> <var>deskItem( 0 )</var>. Since <var>N2</var> <var>deskItem( 0 )</var> cost <code>x</code>, we have the following proportion:</p><p data-else="">Let <code>x</code> represent the unknown cost of <var>N2</var> <var>plural_form(deskItem( 0 ), N2)</var>. Since <var>N2</var> <var>plural_form(deskItem( 0 ), N2)</var> cost <code>x</code>, we have the following proportion:</p>
<p><code>\dfrac{<var>N2</var>}{x}</code></p>
<p>The cost changes along with the number of <var>deskItem( 0 )</var>s purchased, and so the two proportions are equivalent.</p>
</div>
<div data-if="IDX === 1" data-unwrap="">
<p data-if="isSingular(N2)">Let <code>x</code> represent the unknown cost of <var>N2</var> <var>deskItem( 0 )</var>. Since <var>N2</var> <var>deskItem( 0 )</var> cost <code>x</code>, we have the following proportion:</p><p data-else="">Let <code>x</code> represent the unknown cost of <var>N2</var> <var>plural_form(deskItem( 0 ), N2)</var>. Since <var>N2</var> <var>plural_form(deskItem( 0 ), N2)</var> cost <code>x</code>, we have the following proportion:</p>
<p><code>\dfrac{<var>N2</var>}{x}</code></p>
<p data-if="isSingular(N1)">We can write the fact that <var>N1</var> <var>deskItem( 0 )</var> cost $<var>C</var> as a proportion:</p><p data-else="">We can write the fact that <var>N1</var> <var>plural_form(deskItem( 0 ), N1)</var> cost $<var>C</var> as a proportion:</p>
<p><code>\dfrac{<var>N1</var>}{\$<var>C</var>}</code></p>
<p>The cost changes along with the number of <var>deskItem( 0 )</var>s purchased, and so the two proportions are equivalent.</p>
</div>
<div data-if="IDX === 2" data-unwrap="">
<p><span data-if="isSingular(N1)">We know the cost of <var>N1</var> <var>deskItem( 0 )</var>.</span><span data-else="">We know the cost of <var>N1</var> <var>plural_form(deskItem( 0 ), N1)</var>.</span> <span data-if="isSingular(N2)">We want to know the cost of <var>N2</var> <var>deskItem( 0 )</var>.</span><span data-else="">We want to know the cost of <var>N2</var> <var>plural_form(deskItem( 0 ), N2)</var>.</span> <span>We can write the numbers of <var>plural_form(deskItem( 0 ))</var> as a proportion:</span></p>
<p><code>\dfrac{<var>N1</var>}{<var>N2</var>}</code></p>
<p>
<span data-if="isSingular(N1)">We know <var>N1</var> <var>deskItem( 0 )</var> costs $<var>C</var>.</span><span data-else="">We know <var>N1</var> <var>plural_form(deskItem( 0 ), N1)</var> costs $<var>C</var>.</span>
<span data-if="isSingular(N2)">We can let <code>x</code> represent the unknown cost of <var>N2</var> <var>deskItem( 0 )</var>.</span><span data-else="">We can let <code>x</code> represent the unknown cost of <var>N2</var> <var>plural_form(deskItem( 0 ), N2)</var>.</span>
<span>The proportion of these costs can be expressed as:</span>
</p>
<p><code>\dfrac{\$<var>C</var>}{x}</code></p>
<p>The cost changes along with the number of <var>deskItem( 0 )</var>s purchased, and so the two proportions are equivalent.</p>
</div>
<div data-if="IDX === 3" data-unwrap="">
<p data-if="isSingular(N2)">If we let <code>x</code> represent the cost of <var>N2</var> <var>deskItem( 0 )</var>, we have the following proportion:</p><p data-else="">If we let <code>x</code> represent the cost of <var>N2</var> <var>plural_form(deskItem( 0 ), N2)</var>, we have the following proportion:</p>
<p><code>\dfrac{x}{<var>N2</var>}</code></p>
<p data-if="isSingular(N1)">We have to pay $<var>C</var> for <var>N1</var> <var>deskItem( 0 )</var>, and that can be written as a proportion:</p><p data-else="">We have to pay $<var>C</var> for <var>N1</var> <var>plural_form(deskItem( 0 ), N1)</var>, and that can be written as a proportion:</p>
<p><code>\dfrac{\$<var>C</var>}{<var>N1</var>}</code></p>
<p>Since the price per <var>deskItem(0)</var> stays the same, these two proportions are equivalent.</p>
</div>
<p><code><var>SOLUTIONS[ IDX ]</var></code></p>
</div>
</div>
</div>
</div>
</body>
</html>