randRange( 10, 55 ) randRange( 1, 100 ) PERCENT * NUMBER / 100 rand( 3 ) [ "Base", "Percent", "Amount" ] ANSWER_TYPES[ ANSWER_CHOOSER ] [ NUMBER, PERCENT, RESULT ] ANSWER_VALUES[ ANSWER_CHOOSER ] (round( randRange( 11, 100 ) / 10) * 10 )
What percent of lines are blue?

init({ range: [ [ -1, 6], [ -1, 6 ] ], scale: [ 50, 50 ] }); var f = squareFractions( BIG_PERCENT, 100, 10, 1.37, 0.25 );

BIG_PERCENT

The entire grid is 100%.

There are 10 lines total, so each line is 10%.

There are ( BIG_PERCENT / 10).toFixed( 0 ) blue lines, so blue lines represent BIG_PERCENT% of the grid.

What percent of the grid is represented by the blue squares?

init({ range: [ [ -1, 6], [ -1, 6 ] ], scale: [ 50, 50 ] }); var f = squareFractions( PERCENT, 100, 10 );

PERCENT

The entire grid is 100%.

There are 10 columns and 10 rows, so there are 100 squares total.

Therefore, each square is equal to 1%.

There are PERCENT blue squares, so blue squares represent PERCENT% of the grid.

In the statement:

PERCENT\% of NUMBER is RESULT

What is ANSWER_VALUE?
• ans
i

Percent \cdot Base = Amount

PERCENT\% \cdot NUMBER = RESULT

Therefore, ANSWER_VALUE is the ANSWER_NAME.toLowerCase().

In the statement:

RESULT is PERCENT\% of NUMBER

What is ANSWER_VALUE?
Percent \cdot Base = Amount
RESULT= PERCENT\% \cdot NUMBER
We can rewrite that as PERCENT\% \cdot NUMBER = RESULT
Therefore, ANSWER_VALUE is the ANSWER_NAME.toLowerCase().