Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

93 lines (92 sloc) 4.952 kB
<!DOCTYPE html>
<html data-require="math math-format expressions">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Writing expressions</title>
<script data-main="../local-only/main.js" src="../local-only/require.js"></script>
</head>
<body>
<div class="exercise">
<div class="problems">
<div id="original">
<div class="vars">
<var id="M">randRange(1, 4)</var>
<var id="B">-randRange(1, 10)</var>
</div>
<div class="problem">
<p>Write an expression to represent:</p>
</div>
<p class="question">
<var>CardinalThrough20(-B)</var> less than the product of <var>cardinalThrough20(M)</var> and a number <code>x</code>.
</p>
<p class="solution" data-type="expression"><var>M</var> * x + <var>B</var></p>
<div class="hints">
<p>
The product of <var>cardinalThrough20(M)</var> and a number <code>x</code> can be written as
<span data-if="M !== 1"><code><var>M</var></code></span><code>x</code>.
</p>
<p><var>CardinalThrough20(-B)</var> less than something means that we subtract <code><var>-B</var></code> from it.</p>
<p>
If we subtract <code><var>-B</var></code> from <code><var>expr(["*", M, "x"])</var></code>, we have <code><var>expr(["+", ["*", M, "x"], B])</var></code>.
</p>
</div>
</div>
<div data-type="original">
<div class="vars">
<var id="M">randRange(1, 4)</var>
<var id="B">randRange(1, 10)</var>
</div>
<p class="question">
<var>CardinalThrough20(B)</var> more than the product of <var>cardinalThrough20(M)</var> and a number <code>x</code>.
</p>
<div class="hints">
<p>
The product of <var>cardinalThrough20(M)</var> and a number <code>x</code> can be written as
<span data-if="M !== 1"><code><var>M</var></code></span><code>x</code>.
</p>
<p><var>CardinalThrough20(B)</var> more than something means that we add <code><var>B</var></code> to it.</p>
<p>
If we add <code><var>B</var></code> to <code><var>expr(["*", M, "x"])</var></code>, we have <code><var>expr(["+", B, ["*", M, "x"]])</var></code>.
</p>
</div>
</div>
<div data-type="original">
<div class="vars">
<var id="M">-randRange(1, 4)</var>
<var id="B">randRange(1, 10)</var>
</div>
<p class="question">
<var>CardinalThrough20(B)</var> minus the product of <var>cardinalThrough20(-M)</var> and a number <code>x</code>.
</p>
<div class="hints">
<p>
The product of <var>cardinalThrough20(-M)</var> and a number <code>x</code> can be written as
<span data-if="-M !== 1"><code><var>-M</var></code></span><code>x</code>.
</p>
<p><var>CardinalThrough20(B)</var> minus something means that we subtract it from <code><var>B</var></code>.</p>
<p>
If we subtract <code><var>expr(["*", -M, "x"])</var></code> from <code><var>B</var></code>, we have <code><var>expr(["+", B, ["*", M, "x"]])</var></code>.
</p>
</div>
</div>
<div data-type="original">
<div class="vars">
<var id="M">randRange(1, 4)</var>
<var id="B">randRange(1, 10)</var>
</div>
<p class="question">
The sum of <var>cardinalThrough20(B)</var> and the product of <var>cardinalThrough20(M)</var> and a number <code>x</code>.
</p>
<div class="hints">
<p>
The product of <var>cardinalThrough20(M)</var> and a number <code>x</code> can be written as
<span data-if="M !== 1"><code><var>M</var></code></span><code>x</code>.
</p>
<p>"Sum" means that we add <code><var>B</var></code> and <code><var>expr(["*", M, "x"])</var></code>.</p>
<p>If we add <code><var>B</var></code> and <code><var>expr(["*", M, "x"])</var></code>, we have <code><var>expr(["+", B, ["*", M, "x"]])</var></code>.</p>
</div>
</div>
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.