# Khan/khan-exercises

### Subversion checkout URL

You can clone with
or
.
Fetching contributors…

Cannot retrieve contributors at this time

94 lines (86 sloc) 4.189 kB
 Basic Fractions 0.5
randRange(1, 8) randRange(NUM_1 + 1, 9)

What fraction of this circle is shaded red?

init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); piechart([NUM_1, DEN_1 - NUM_1], ["#e00", "#999"], 2);

NUM_1 / DEN_1

Count the red slices for the numerator.

There plural("is", NUM_1) pluralTex(NUM_1, "red slice").

Count the total slices \left(\color{#e00}{\text{Red Slices}} + \color{#999}{\text{Gray Slices}}\right) for the denominator.

There are \color{#000}{DEN_1\text{ Slices}} in total.

What fraction of the bar is shaded red?

init({ range: [ [0, 1], [0, 1] ], scale: [250, 25] }); rectchart([NUM_1, DEN_1-NUM_1], ["#e00", "#999"]);

NUM_1 / DEN_1

Count the red blocks for the numerator.

There plural( "is", NUM_1 ) pluralTex(NUM_1, "red block").

Count the total slices \left(\color{#e00}{\text{Red Blocks}} + \color{#999}{\text{Gray Blocks}}\right) for the denominator.

There are \color{#000}{DEN_1\text{ Blocks}} in total.