Skip to content
This repository
Browse code

multiplication_1 finished, percentage_word_problems_1 frameworked, st…

…ill needs hints and problem types 5-7
  • Loading branch information...
commit 4fce3f6d769ddbe61311d7f5977159a6a4bbc7c5 1 parent 535441a
Sophia Westwood swestwood authored
28 exercises/multiplication_1.html
... ... @@ -0,0 +1,28 @@
  1 +<!DOCTYPE html>
  2 +<html data-require="math">
  3 +<head>
  4 + <title>Multiplication 1</title>
  5 + <script src="../khan-exercise.js"></script>
  6 +</head>
  7 +<body>
  8 + <div class="exercise">
  9 +
  10 + <div class="vars">
  11 + <var id="A">rand(12)</var>
  12 + <var id="B">rand(12)</var>
  13 + </div>
  14 +
  15 + <div class="problems">
  16 + <div>
  17 + <p class="question"><var>A</var> x <var>B</var> = ? </p>
  18 + <div class="solution"><var>A * B</var></div>
  19 + </div>
  20 + </div>
  21 +
  22 + <div class="hints">
  23 + <p>TODO: Hints go here. (pretty circles)</p>
  24 + </div>
  25 +
  26 + </div>
  27 +</body>
  28 +</html>
65 exercises/percentage_word_problems_1.html
... ... @@ -0,0 +1,65 @@
  1 +<!DOCTYPE html>
  2 +<html data-require="math">
  3 +<head>
  4 + <title>Percentage Word Problems 1</title>
  5 + <script src="../khan-exercise.js"></script>
  6 +</head>
  7 +<body>
  8 + <div class="exercise">
  9 +
  10 + <div class="vars">
  11 + <var id="A_SIMPLE">1 + rand(149)</var>
  12 + <var id="B_SIMPLE">2 + rand(98)</var>
  13 + <var id="BANK_MORE">1 + rand(99)</var>
  14 + <var id="BANK_FEWER">BANK_MORE + 5 + rand(2*BANK_MORE + 5)</var>
  15 + <var id="YEAR_PERCENT_MORE">10 + rand(140)</var>
  16 + <var id="YEAR_TODAY">50 + rand(949)</var>
  17 + </div>
  18 +
  19 + <div class="problems">
  20 + <div id = "original">
  21 + <div class="problem"> </div>
  22 + <p class="question">
  23 + What is <var>A_SIMPLE</var>% of <var>B_SIMPLE</var>? (round to nearest whole number)
  24 + </p>
  25 + <p class="solution"><var>round((A_SIMPLE*B_SIMPLE)/100)</var></p>
  26 + <div class="hints">
  27 + <div class="hint-equation"><code><var>A_SIMPLE/100</var> * <var>B_SIMPLE</var> \approx <var>round((A_SIMPLE*B_SIMPLE)/100)</var> </code></div>
  28 + </div>
  29 + </div>
  30 + <div data-type="original">
  31 + <p class="question">
  32 + <var>B_SIMPLE</var> is <var>A_SIMPLE</var>% of what number (round to the hundredths place)?
  33 + </p>
  34 + <p class="solution"><var>round((B_SIMPLE* 100/A_SIMPLE * 100)/100)</var></p>
  35 + <div class="hints">
  36 + <div class="hint-equation">
  37 + <p class="hint1">Let <code>x</code> be the number that <var>B_SIMPLE</var> is <var>A_SIMPLE</var>% of.</p>
  38 + <p class="hint2"><code><var>A_SIMPLE/100</var> * x = <var>B_SIMPLE</var></code></p>
  39 + <p class="hint3"><code>x=<var>B_SIMPLE</var>/<var>A_SIMPLE/100</var></code></p>
  40 + <p class="hint4"><code>x \approx<var>round((B_SIMPLE* 100/A_SIMPLE * 100))/100</var></code></p>
  41 + </div>
  42 + </div>
  43 + </div>
  44 + <div data-type="original">
  45 + <p class="question">
  46 + Jerry has <var>BANK_MORE</var> dollars in the bank today. Yesterday, he had <var>BANK_FEWER</var> dollars in the bank. By what percentage did Jerry's bank account increase over the past day? (enter your answer as a percentage rounded to the hundredths place. For example, if your answer is 95.678%, enter 95.68 for your answer) </p>
  47 + <p class="solution"><var>round(((BANK_FEWER - BANK_MORE)*10000/BANK_MORE))/100</var></p>
  48 + </div>
  49 + <div data-type="original">
  50 + <p class="question">
  51 + Jerry has <var>BANK_FEWER</var> dollars in the bank today. Yesterday, he had <var>BANK_MORE</var> dollars in the bank. By what percentage did Jerry's bank account decrease over the past day? (enter your answer as a percentage rounded to the hundredths place. For example, if your answer is 95.678%, enter 95.68 for your answer)
  52 + </p>
  53 + <p class="solution"><var>round(((BANK_FEWER - BANK_MORE)*10000/BANK_FEWER))/100</var></p>
  54 + </div>
  55 + <!-- NOTE: problem types 5-7 not yet implemented. hints not fully implemented -->
  56 + </div>
  57 +
  58 + <div class="hints">
  59 + <div class="hint-equation"></div>
  60 + </div>
  61 +
  62 +
  63 + </div>
  64 +</body>
  65 +</html>

0 comments on commit 4fce3f6

Please sign in to comment.
Something went wrong with that request. Please try again.