Skip to content
Newer
Older
100644 124 lines (123 sloc) 7.22 KB
4fce3f6 @swestwood multiplication_1 finished, percentage_word_problems_1 frameworked, st…
swestwood authored May 20, 2011
1 <!DOCTYPE html>
d529248 @smenks13 spinning meals and locations
smenks13 authored Oct 20, 2011
2 <html data-require="math expressions spin word-problems">
4fce3f6 @swestwood multiplication_1 finished, percentage_word_problems_1 frameworked, st…
swestwood authored May 20, 2011
3 <head>
72418b8 @jeresig Add meta charset to all HTML pages.
jeresig authored Jul 28, 2011
4 <meta charset="UTF-8" />
07d95d3 @spicyj Rename EVERYTHING; closes #323.
spicyj authored Jul 22, 2011
5 <title>Percentage word problems 1</title>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
6 <script src="../khan-exercise.js"></script>
4fce3f6 @swestwood multiplication_1 finished, percentage_word_problems_1 frameworked, st…
swestwood authored May 20, 2011
7 </head>
8 <body>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
9 <div class="exercise">
10 <div class="problems">
11 <div id="simple-percentages">
12 <div class="vars">
b59256d @marcia Remove extra KhanUtils, not necessary in var blocks
marcia authored Jun 2, 2011
13 <var id="A_SIMPLE">randRange( 1, 150 )</var>
14 <var id="B_SIMPLE">randRange( 2, 100 )</var>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
15 </div>
16 <p class="question">
a16f0e4 @spicyj Tiny wording tweaks
spicyj authored Aug 31, 2011
17 What is <var>A_SIMPLE</var>% of <var>B_SIMPLE</var>? (Round to nearest whole number.)
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
18 </p>
6f2c5fb @marcia Use new answer forms
marcia authored Aug 2, 2011
19 <p class="solution" data-forms="integer"><var>round((A_SIMPLE * B_SIMPLE) / 100)</var></p>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
20 <div class="hints">
21 <p>
d6eaf10 @marcia Introduce dollar answer form that accepts $10.75 and 10.75
marcia authored Sep 23, 2011
22 <code><var>A_SIMPLE / 100</var> \times <var>B_SIMPLE</var> \approx <var>round((A_SIMPLE * B_SIMPLE) / 100)</var> </code>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
23 </p>
24 </div>
25 </div>
26 <div id="backward-percentages" data-type="simple-percentages">
27 <p class="question">
a16f0e4 @spicyj Tiny wording tweaks
spicyj authored Aug 31, 2011
28 <var>B_SIMPLE</var> is <var>A_SIMPLE</var>% of what number? (Round to the hundredths place.)
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
29 </p>
6f2c5fb @marcia Use new answer forms
marcia authored Aug 2, 2011
30 <p class="solution" data-forms="decimal"><var>round(((B_SIMPLE * 100) / A_SIMPLE) * 100) / 100</var></p>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
31 <div class="hints">
32 <p>Let <code>x</code> be the number that <var>B_SIMPLE</var> is <var>A_SIMPLE</var>% of.</p>
d6eaf10 @marcia Introduce dollar answer form that accepts $10.75 and 10.75
marcia authored Sep 23, 2011
33 <p><code><var>A_SIMPLE / 100</var> \times x = <var>B_SIMPLE</var></code></p>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
34 <p><code>x=<var>B_SIMPLE</var>/<var>A_SIMPLE / 100</var></code></p>
35 <p><code>x \approx<var>round((B_SIMPLE * 100/A_SIMPLE * 100))/100</var></code></p>
36 </div>
37 </div>
38 <div id="bank-percentages">
39 <div class="vars">
b59256d @marcia Remove extra KhanUtils, not necessary in var blocks
marcia authored Jun 2, 2011
40 <var id="BANK_FEWER">randRange( 2, 100 )</var>
41 <var id="BANK_MORE">BANK_FEWER + randRange(5, 2 * BANK_FEWER + 10 )</var>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
42 </div>
43 <p class="question">
a16f0e4 @spicyj Tiny wording tweaks
spicyj authored Aug 31, 2011
44 <var>person(1)</var> has <var>BANK_MORE</var> dollars in the bank today. Yesterday, <var>he(1)</var> had <var>BANK_FEWER</var> dollars in the bank. By what percentage did <var>person(1)</var>'s bank account increase over the past day? (Round your answer to the nearest hundredth of a percent.)</p>
6f2c5fb @marcia Use new answer forms
marcia authored Aug 2, 2011
45 <p class="solution" data-forms="percent"><var>round(((BANK_MORE - BANK_FEWER) * 10000) / BANK_FEWER) / 100</var></p>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
46 <div class="hints">
47 <p>The bank account grew by <code><var>BANK_MORE</var> - <var>BANK_FEWER</var> = <var>BANK_MORE - BANK_FEWER</var></code> dollars </p>
f1c3306 @spicyj Make MathJax pretty! (fix #212)
spicyj authored Jul 26, 2011
48 <p><code>\frac{<var>BANK_MORE - BANK_FEWER</var>}{<var>BANK_FEWER</var>} \approx <var>round(((BANK_MORE - BANK_FEWER) * 10000) / BANK_FEWER) / 100</var>\%</code></p>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
49 </div>
50 </div>
51 <div id="bank-percentages-loss" data-type="bank-percentages">
52 <p class="question">
a16f0e4 @spicyj Tiny wording tweaks
spicyj authored Aug 31, 2011
53 <var>person(1)</var> has <var>BANK_FEWER</var> dollars in the bank today. Yesterday, <var>he(1)</var> had <var>BANK_MORE</var> dollars in the bank. By what percentage did <var>person(1)</var>'s bank account decrease over the past day? (Round your answer to the nearest hundredth of a percent.)</p>
6f2c5fb @marcia Use new answer forms
marcia authored Aug 2, 2011
54 <p class="solution" data-forms="percent"><var>round(((BANK_MORE - BANK_FEWER) * 10000) / BANK_MORE) / 100</var></p>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
55 <div class="hints">
56 <p>The bank account decreased by <code><var>BANK_MORE</var> - <var>BANK_FEWER</var> = <var>BANK_MORE - BANK_FEWER</var></code> dollars </p>
f1c3306 @spicyj Make MathJax pretty! (fix #212)
spicyj authored Jul 27, 2011
57 <p><code>\frac{<var>BANK_MORE - BANK_FEWER</var>}{<var>BANK_MORE</var>} \approx <var>round(((BANK_MORE - BANK_FEWER) * 10000) / BANK_MORE) / 100</var>\%</code></p>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
58 </div>
59 </div>
60 <div id="yearly-percentages">
61 <div class="vars">
b59256d @marcia Remove extra KhanUtils, not necessary in var blocks
marcia authored Jun 2, 2011
62 <var id="YEAR_PERCENT_MORE">randRange( 10, 150 )</var>
63 <var id="YEAR_THIS">randRange( 50, 999 )</var>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
64 <var id="YEAR_LAST">round(YEAR_THIS * 10000 / (100 + YEAR_PERCENT_MORE)) / 100</var>
65 </div>
66 <p class="question">
a16f0e4 @spicyj Tiny wording tweaks
spicyj authored Aug 31, 2011
67 <var>person(1)</var> has <var>YEAR_PERCENT_MORE</var>% more money today than <var>he(1)</var> did this time last year. If <var>person(1)</var> has <var>YEAR_THIS</var> dollars today, how many dollars did <var>he(1)</var> have this time last year? (Round to the nearest penny.)</p>
d6eaf10 @marcia Introduce dollar answer form that accepts $10.75 and 10.75
marcia authored Sep 23, 2011
68 <p class="solution" data-forms="dollar"><var>YEAR_LAST</var></p>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
69 <div class="hints">
d9c2e7e @spicyj Fix pronouns on percentage word problems
spicyj authored Jul 20, 2011
70 <p>Let <code>x</code> be the amount of money that <var>he(1)</var> had last year.</p>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
71 <p><code>x + <var>YEAR_PERCENT_MORE / 100</var>x = <var>YEAR_THIS</var></code></p>
72 <p><code><var>(100 + YEAR_PERCENT_MORE) / 100</var>x = <var>YEAR_THIS</var></code></p>
73 <p><code>x = \frac{<var>YEAR_THIS</var>}{<var>(100 + YEAR_PERCENT_MORE) / 100</var>}</code></p>
74 <p><code>x \approx <var>YEAR_LAST</var></code></p>
75 </div>
76 </div>
ea156a1 @smenks13 Percentage Word Problems 1: Add tip calculation problem
smenks13 authored Oct 19, 2011
77 <div id="tip">
78 <div class="vars">
79 <var id="BILL">randRange( 20, 50 )</var>
80 <var id="BILL_FORMAT">parseFloat( BILL ).toFixed( 2 )</var>
81 <var id="TIP_PERCENT">randRange( 1, 4 ) * 5</var>
82 <var id="TIP_AMOUNT">BILL * ( TIP_PERCENT / 100 )</var>
83 <var id="TIP_AMOUNT_FORMAT">parseFloat( TIP_AMOUNT ).toFixed( 2 )</var>
dbdb81f @smenks13 Changed tip calculation hints to depict realistic scenario. Deleted a…
smenks13 authored Oct 26, 2011
84 <var id="TIP_TEN_PERCENT">parseFloat( BILL * .1 ).toFixed( 2 )</var>
85 <var id="TIP_FIVE_PERCENT">parseFloat( BILL * .05 ).toFixed( 2 )</var>
ea156a1 @smenks13 Percentage Word Problems 1: Add tip calculation problem
smenks13 authored Oct 19, 2011
86 <var id="TOTAL">BILL + TIP_AMOUNT</var>
87 <var id="TOTAL_FORMAT">parseFloat( TOTAL ).toFixed( 2 )</var>
88 </div>
d529248 @smenks13 spinning meals and locations
smenks13 authored Oct 20, 2011
89 <div class="question">
b7ad871 @marcia Move maths to separate line
marcia authored Oct 27, 2011
90 <p class="spin"><b><var>person(1)</var> {has {breakfast|lunch|dinner}|eats} at a {restaurant|cafe} and the cost of <var>his(1)</var> meal is $<var>BILL_FORMAT</var>. <var>He(1)</var> would like to leave a <var>TIP_PERCENT</var>% tip. What is <var>his(1)</var> total bill including tip?</b></p>
d529248 @smenks13 spinning meals and locations
smenks13 authored Oct 20, 2011
91 </div>
ea156a1 @smenks13 Percentage Word Problems 1: Add tip calculation problem
smenks13 authored Oct 19, 2011
92 <p class="solution" data-forms="dollar"><var>TOTAL</var></p>
93 <div class="hints">
b7ad871 @marcia Move maths to separate line
marcia authored Oct 27, 2011
94 <div>
95 <p>The tip amount is equal to <code><var>TIP_PERCENT</var>\% \times \$<var>BILL_FORMAT</var></code>.</p>
96 <p data-if="TIP_PERCENT != 10">We can find the tip by first calculating a <code>10\%</code> tip <span data-if="TIP_PERCENT === 5"> and then dividing that number by two.</span><span data-else-if="TIP_PERCENT === 20"> and then multiplying that number by two.</span><span data-else> and a <code>5\%</code> tip, and then adding those two numbers together.</span></p>
97 </div>
98 <div>
99 <p>To calculate a <code>10\%</code> tip, move the decimal point in <code>\$<var>BILL_FORMAT</var></code> one place to the left.</p>
100 <p><code>10\% \times \$<var>BILL_FORMAT</var> = \$<var>TIP_TEN_PERCENT</var></code></p>
101 </div>
dbdb81f @smenks13 Changed tip calculation hints to depict realistic scenario. Deleted a…
smenks13 authored Oct 26, 2011
102 <div data-if="TIP_PERCENT !== 10">
b7ad871 @marcia Move maths to separate line
marcia authored Oct 27, 2011
103 <div data-if="TIP_PERCENT % 10 === 5">
104 <p>To calculate a <code>5\%</code> tip, divide the <code>10\%</code> tip amount in half.</p>
105 <p><code>5\% \times \$<var>BILL_FORMAT</var> = \$<var>TIP_TEN_PERCENT</var> \div 2 = \$<var>TIP_FIVE_PERCENT</var></code>.</p>
106 </div>
107 <div data-else>
108 <p>To calculate a <code>20\%</code> tip, multiply the <code>10\%</code> tip amount by two.</p>
109 <p><code>20\% \times \$<var>BILL_FORMAT</var> = \$<var>TIP_TEN_PERCENT</var> \times 2 = \$<var>TIP_AMOUNT_FORMAT</var></code>.</p>
110 </div>
dbdb81f @smenks13 Changed tip calculation hints to depict realistic scenario. Deleted a…
smenks13 authored Oct 26, 2011
111 </div>
112 <div data-if="TIP_PERCENT === 15">
113 <p>Adding the two amounts together gives us <code>\$<var>TIP_TEN_PERCENT</var> + \$<var>TIP_FIVE_PERCENT</var> = \$<var>TIP_AMOUNT_FORMAT</var></code>.</p>
ea156a1 @smenks13 Percentage Word Problems 1: Add tip calculation problem
smenks13 authored Oct 19, 2011
114 </div>
b7ad871 @marcia Move maths to separate line
marcia authored Oct 27, 2011
115 <p>The cost of the meal plus the amount of the tip will equal the total bill amount.</p>
116 <p><code>\$<var>BILL_FORMAT</var> + \$<var>TIP_AMOUNT_FORMAT</var> = \$<var>TOTAL_FORMAT</var></code>.</p>
dbdb81f @smenks13 Changed tip calculation hints to depict realistic scenario. Deleted a…
smenks13 authored Oct 26, 2011
117 <p>The total cost of the bill is <code>\$<var>TOTAL_FORMAT</var></code>.</p>
ea156a1 @smenks13 Percentage Word Problems 1: Add tip calculation problem
smenks13 authored Oct 19, 2011
118 </div>
119 </div>
075f731 @spicyj Space/tab cleanup
spicyj authored Jun 2, 2011
120 </div>
121 </div>
4fce3f6 @swestwood multiplication_1 finished, percentage_word_problems_1 frameworked, st…
swestwood authored May 20, 2011
122 </body>
cf02179 @spicyj Strip trailing whitespace
spicyj authored Jun 1, 2011
123 </html>
Something went wrong with that request. Please try again.