Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add custom problem types for custom stack test

  • Loading branch information...
commit ece572aa0a283b5de3149750aeaf0306bf1b16e0 1 parent ed0be47
@beneater beneater authored
View
20 exercises/adding_fractions.html
@@ -24,10 +24,28 @@
</div>
<div class="problems">
- <div>
+ <div id="add-fractions">
<p class="question"><code><var>fraction( N1, D1 )</var> + <var>fraction( N2, D2 )</var> = {?}</code></p>
<p class="solution" data-type="rational"><var>N1 / D1 + N2 / D2</var></p>
</div>
+
+ <div id="custom-8" data-weight="0" data-type="add-fractions">
+ <div class="vars">
+ <var id="N1">1</var>
+ <var id="D1">2</var>
+ <var id="GCD1">getGCD( N1, D1 )</var>
+ <var id="SIMP_N1">N1 / GCD1</var>
+ <var id="SIMP_D1">D1 / GCD1</var>
+
+ <var id="N2">1</var>
+ <var id="D2">4</var>
+ <var id="GCD2">getGCD( N2, D2 )</var>
+ <var id="SIMP_N2">N2 / GCD2</var>
+ <var id="SIMP_D2">D2 / GCD2</var>
+
+ <var id="LCM">getLCM( SIMP_D1, SIMP_D2 )</var>
+ </div>
+ </div>
</div>
<div class="hints">
View
10 exercises/adding_fractions_with_common_denominators.html
@@ -14,12 +14,20 @@
</div>
<div class="problems">
- <div>
+ <div id="add-fractions">
<div class="question">
<p><code><var>fraction( N1, D )</var> + <var>fraction( N2, D )</var> = {?}</code></p>
</div>
<div class="solution" data-type="rational" data-simplify="optional"><var>( N1 + N2 ) / D</var></div>
</div>
+
+ <div id="custom-5" data-weight="0" data-type="add-fractions">
+ <div class="vars">
+ <var id="N1">1</var>
+ <var id="N2">1</var>
+ <var id="D">5</var>
+ </div>
+ </div>
</div>
<div class="hints">
View
15 exercises/equivalent_fractions.html
@@ -17,7 +17,7 @@
</div>
<div class="problems">
- <div>
+ <div id="numerator">
<p class="question">What number could replace <code><var>SYMBOL</var></code> below?</p>
<p><code>\dfrac{<var>A</var>}{<var>B</var>} = \dfrac{<var>SYMBOL</var>}{<var>D</var>}</code></p>
<div class="solution" data-forms="integer"><var>C</var></div>
@@ -54,7 +54,7 @@
</div>
</div>
- <div>
+ <div id="denominator">
<p class="question">What number could replace <code><var>SYMBOL</var></code> below?</p>
<p><code>\dfrac{<var>A</var>}{<var>B</var>} = \dfrac{<var>C</var>}{<var>SYMBOL</var>}</code></p>
<div class="solution" data-forms="integer"><var>D</var></div>
@@ -93,6 +93,17 @@
</div>
</div>
+
+ <div id="custom-7" data-weight="0" data-type="numerator">
+ <div class="vars">
+ <var id="A">1</var>
+ <var id="B">2</var>
+ <var id="M">2</var>
+ <var id="C">A * M</var>
+ <var id="D">B * M</var>
+ <var id="SYMBOL">"\\otimes"</var>
+ </div>
+ </div>
</div>
</div>
</body>
View
35 exercises/recognizing_fractions_0.5.html
@@ -52,6 +52,41 @@
<p>So your answer should be <code>\dfrac{\color{#e00}{<var>NUM_1</var>}}{\color{#666}{\text{<var>DEN_1</var>}}}</code>.</p>
</div>
</div>
+
+ <div id="custom-1" data-weight="0" data-type="pie-chart">
+ <div class="vars">
+ <var id="NUM_1">1</var>
+ <var id="DEN_1">2</var>
+ </div>
+ </div>
+
+ <div id="custom-2" data-weight="0" data-type="pie-chart">
+ <div class="vars">
+ <var id="NUM_1">1</var>
+ <var id="DEN_1">4</var>
+ </div>
+ </div>
+
+ <div id="custom-6" data-weight="0" data-type="pie-chart">
+ <div class="vars">
+ <var id="NUM_1">2</var>
+ <var id="DEN_1">4</var>
+ </div>
+ </div>
+
+ <div id="custom-3" data-weight="0" data-type="pie-chart">
+ <div class="vars">
+ <var id="NUM_1">1</var>
+ <var id="DEN_1">5</var>
+ </div>
+ </div>
+
+ <div id="custom-4" data-weight="0" data-type="pie-chart">
+ <div class="vars">
+ <var id="NUM_1">2</var>
+ <var id="DEN_1">5</var>
+ </div>
+ </div>
</div>
</div>
</body>

2 comments on commit ece572a

@Merbs

Are you done with this test? Can I delete the custom problem types?

(In the code I'm writing, handling data-weight="0" is making my code one line longer. One whole line.)

@beneater
Owner

haha; yeah we wrapped up this test about a year ago (with inconclusive results). Please feel free to nuke it.

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