Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 81 lines (78 sloc) 4.477 kb
b40264c @jeresig Adding in my initial prototype.
jeresig authored
1 <!DOCTYPE html>
1e052cf @spicyj Word problem helper library
spicyj authored
2 <html data-require="math word-problems">
b40264c @jeresig Adding in my initial prototype.
jeresig authored
3 <head>
72418b8 @jeresig Add meta charset to all HTML pages.
jeresig authored
4 <meta charset="UTF-8" />
07d95d3 @spicyj Rename EVERYTHING; closes #323.
spicyj authored
5 <title>Rate problems 1</title>
7af06f8 @jeresig Move all exercise logic and file loading into JS file. Move exercises…
jeresig authored
6 <script src="../khan-exercise.js"></script>
b40264c @jeresig Adding in my initial prototype.
jeresig authored
7 </head>
8 <body>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
9 <div class="exercise">
10 <div class="vars">
11 <var id="SPEED1">11 + rand(9)</var>
12 <var id="SPEED2">41 + rand(9)</var>
13 <var id="AVG">31 + rand(9)</var>
14 <var id="TIME">1 + rand(9)</var>
15 <var id="DIST">AVG * TIME</var>
16 <var id="DIST2">(SPEED1 * SPEED2 * TIME - DIST * SPEED2) / (SPEED1 - SPEED2)</var>
17 <var id="DIST1">DIST - DIST2</var>
18 </div>
cf02179 @spicyj Strip trailing whitespace
spicyj authored
19
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
20 <div class="problems">
21 <div id="original">
22 <div class="problem">
1e052cf @spicyj Word problem helper library
spicyj authored
23 <p><var>person(1)</var> traveled by <var>vehicle(1)</var> at an average speed of <var>SPEED1</var> miles per hour.</p>
24 <p>Then, <var>he(1)</var> traveled by <var>vehicle(2)</var> at an average speed of <var>SPEED2</var> miles per hour.</p>
25 <p>In total, <var>he(1)</var> traveled <var>DIST</var> miles for <var>plural(TIME, "hour")</var>.</p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
26 </div>
1e052cf @spicyj Word problem helper library
spicyj authored
27 <p class="question">How many miles did <var>person(1)</var> travel by <var>vehicle(1)</var>? (Round to the nearest mile.)</p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
28 <p class="solution"><var>round(DIST1)</var></p>
a74d029 @spicyj Show final answer in rate problems 1 (fix #165)
spicyj authored
29 <div class="hints" data-apply="appendContents">
30 <p id="final-hint"><code>d_<var>vehicleVar(1)</var> = <var>round(DIST1)</var></code> miles</p>
31 </div>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
32 </div>
33 <div data-type="original">
1e052cf @spicyj Word problem helper library
spicyj authored
34 <p class="question">How many miles did <var>person(1)</var> travel by <var>vehicle(2)</var>? (Round to the nearest mile.)</p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
35 <p class="solution"><var>round(DIST2)</var></p>
a74d029 @spicyj Show final answer in rate problems 1 (fix #165)
spicyj authored
36 <div class="hints" data-apply="appendContents">
37 <p id="final-hint"><code>d_<var>vehicleVar(2)</var> = <var>round(DIST2)</var></code> miles</p>
38 </div>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
39 </div>
40 <div data-type="original">
1e052cf @spicyj Word problem helper library
spicyj authored
41 <p class="question">How many minutes did <var>person(1)</var> travel by <var>vehicle(1)</var>? (Round to the nearest minute.)</p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
42 <p class="solution"><var>round(DIST1 / SPEED1 * 60)</var></p>
a74d029 @spicyj Show final answer in rate problems 1 (fix #165)
spicyj authored
43 <div class="hints" data-apply="appendContents">
44 <p id="final-hint"><code>t_<var>vehicleVar(1)</var> = <var>round(DIST1 / SPEED1 * 60)</var></code> minutes</p>
45 </div>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
46 </div>
47 <div data-type="original">
1e052cf @spicyj Word problem helper library
spicyj authored
48 <p class="question">How many minutes did <var>person(1)</var> travel by <var>vehicle(2)</var>? (Round to the nearest minute.)</p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
49 <p class="solution"><var>round(DIST2 / SPEED2 * 60)</var></p>
a74d029 @spicyj Show final answer in rate problems 1 (fix #165)
spicyj authored
50 <div class="hints" data-apply="appendContents">
51 <p id="final-hint"><code>t_<var>vehicleVar(2)</var> = <var>round(DIST2 / SPEED2 * 60)</var></code> minutes</p>
52 </div>
b40264c @jeresig Adding in my initial prototype.
jeresig authored
53 </div>
54 </div>
cf02179 @spicyj Strip trailing whitespace
spicyj authored
55
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
56 <div class="hints">
f1c3306 @spicyj Make MathJax pretty! (fix #212)
spicyj authored
57 <p>Remember that <code>d = r * t</code>, or written another way, <code>t = d / r</code>.</p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
58 <div>
1e052cf @spicyj Word problem helper library
spicyj authored
59 <p><code>d_<var>vehicleVar(1)</var> =</code> distance that <var>person(1)</var> traveled by <var>vehicle(1)</var></p>
60 <p><code>d_<var>vehicleVar(2)</var> =</code> distance that <var>person(1)</var> traveled by <var>vehicle(2)</var></p>
61 <p>Total distance: <code class="hint_orange">d_<var>vehicleVar(1)</var> + d_<var>vehicleVar(2)</var> = <var>DIST</var></code></p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
62 </div>
1e052cf @spicyj Word problem helper library
spicyj authored
63 <p>Total time: <code class="hint_blue">t_<var>vehicleVar(1)</var> + t_<var>vehicleVar(2)</var> = <var>TIME</var></code></p>
cf02179 @spicyj Strip trailing whitespace
spicyj authored
64 <p><code class="hint_blue">t_<var>vehicleVar(1)</var> = (d_<var>vehicleVar(1)</var> / <var>SPEED1</var>)</code> and
1e052cf @spicyj Word problem helper library
spicyj authored
65 <code class="hint_blue">t_<var>vehicleVar(2)</var> = (d_<var>vehicleVar(2)</var> / <var>SPEED2</var>)</code></p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
66 <p>Substitute the blue equations for:
1e052cf @spicyj Word problem helper library
spicyj authored
67 <code>(d_<var>vehicleVar(1)</var> / <var>SPEED1</var>) + (d_<var>vehicleVar(2)</var> / <var>SPEED2</var>) = <var>TIME</var></code></p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
68 <p>Multiply the above equation by <var>-1 * SPEED1</var>:
1e052cf @spicyj Word problem helper library
spicyj authored
69 <code class="hint_orange">-d_<var>vehicleVar(1)</var> - (<var>SPEED1</var> / <var>SPEED2</var>) * d_<var>vehicleVar(2)</var> = <var>-SPEED1 * TIME</var></code></p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
70 <p>Add the two orange equations for:
1e052cf @spicyj Word problem helper library
spicyj authored
71 <code>(<var>SPEED2 - SPEED1</var> / <var>SPEED2</var>) * d_<var>vehicleVar(2)</var> = <var>DIST - (SPEED1 * TIME)</var></code></p>
72 <p>Simplify and round to the nearest integer:<br>
73 <code>d_<var>vehicleVar(2)</var> = <var>round(DIST2)</var></code> miles<br>
74 <code>d_<var>vehicleVar(1)</var> = <var>round(DIST1)</var></code> miles<br>
75 <code>t_<var>vehicleVar(1)</var> = <var>round(DIST1 / SPEED1 * 60)</var></code> minutes<br>
76 <code>t_<var>vehicleVar(2)</var> = <var>round(DIST2 / SPEED2 * 60)</var></code> minutes</p>
b40264c @jeresig Adding in my initial prototype.
jeresig authored
77 </div>
78 </div>
79 </body>
f161590 @pappy74 added KhanUtil.plural
pappy74 authored
80 </html>
Something went wrong with that request. Please try again.