Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 48 lines (45 sloc) 1.665 kb
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
<!DOCTYPE html>
<html data-require="math graphie graphie-helpers-arithmetic">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Addition 4</title>
    <script src="../khan-exercise.js"></script>
</head>
<body>
<div class="exercise">
    <div class="vars" data-ensure="A >= B && (
(A_1 + B_1 > 10 && B >= 10) ||
(A_10 + B_10 > 100 && B >= 100) ||
(A_100 + B_100 > 1000 && B >= 1000))">
        <var id="A_1000">randRangeWeighted(0, 9, 0, 0.25) * 1000</var>
        <var id="A_100">randRange(0, 9) * 100</var>
        <var id="A_10">randRange(0, 9) * 10</var>
        <var id="A_1">randRange(0, 9) * 1</var>
        <var id="B_1000" data-ensure="B_1000 <= A_1000">
            randRangeWeighted(0, 9, 0, 0.25) * 1000
        </var>
        <var id="B_100">randRange(0, 9) * 100</var>
        <var id="B_10">randRange(0, 9) * 10</var>
        <var id="B_1">randRange(0, 9) * 1</var>
        <var id="A">A_1000 +A_100 + A_10 + A_1</var>
        <var id="B">B_1000 +B_100 + B_10 + B_1</var>
        <var id="NUM_HINTS">0</var>
    </div>

    <div class="problems">
        <div id="addition-4">
            <div class="graphie" id="numbers">
                graph.adder = new Adder(A, B);
                graph.adder.show();
                NUM_HINTS = graph.adder.getNumHints();
            </div>
            <div class="solution" data-forms="integer"><var>A + B</var></div>
        </div>
    </div>

    <div class="hints">
        <div class="graphie" data-update="numbers" data-each="NUM_HINTS times">
            graph.adder.showHint();
        </div>
    </div>
</div>
</body>
</html>
Something went wrong with that request. Please try again.