randRange( 1, 150 ) randRange( 2, 100 )

What is A_SIMPLE% of B_SIMPLE? (Round to nearest whole number.)

round((A_SIMPLE * B_SIMPLE) / 100)

A_SIMPLE / 100 \times B_SIMPLE \approx round((A_SIMPLE * B_SIMPLE) / 100)

B_SIMPLE is A_SIMPLE% of what number? (Round to the hundredths place.)

round(((B_SIMPLE * 100) / A_SIMPLE) * 100) / 100

Let x be the number that B_SIMPLE is A_SIMPLE% of.

A_SIMPLE / 100 \times x = B_SIMPLE

x=B_SIMPLE/A_SIMPLE / 100

x \approxround((B_SIMPLE * 100/A_SIMPLE * 100))/100

randRange( 2, 100 ) BANK_FEWER + randRange(5, 2 * BANK_FEWER + 10 )

person(1) has BANK_MORE dollars in the bank today. Yesterday, he(1) had BANK_FEWER dollars in the bank. By what percentage did person(1)'s bank account increase over the past day? (Round your answer to the nearest hundredth of a percent.)

round(((BANK_MORE - BANK_FEWER) * 10000) / BANK_FEWER) / 100

The bank account grew by BANK_MORE - BANK_FEWER = BANK_MORE - BANK_FEWER dollars

\frac{BANK_MORE - BANK_FEWER}{BANK_FEWER} \approx round(((BANK_MORE - BANK_FEWER) * 10000) / BANK_FEWER) / 100\%

person(1) has BANK_FEWER dollars in the bank today. Yesterday, he(1) had BANK_MORE dollars in the bank. By what percentage did person(1)'s bank account decrease over the past day? (Round your answer to the nearest hundredth of a percent.)

round(((BANK_MORE - BANK_FEWER) * 10000) / BANK_MORE) / 100

The bank account decreased by BANK_MORE - BANK_FEWER = BANK_MORE - BANK_FEWER dollars

\frac{BANK_MORE - BANK_FEWER}{BANK_MORE} \approx round(((BANK_MORE - BANK_FEWER) * 10000) / BANK_MORE) / 100\%

randRange( 10, 150 ) randRange( 50, 999 ) round(YEAR_THIS * 10000 / (100 + YEAR_PERCENT_MORE)) / 100

person(1) has YEAR_PERCENT_MORE% more money today than he(1) did this time last year. If person(1) has YEAR_THIS dollars today, how many dollars did he(1) have this time last year? (Round to the nearest penny.)

YEAR_LAST

Let x be the amount of money that he(1) had last year.

x + YEAR_PERCENT_MORE / 100x = YEAR_THIS

(100 + YEAR_PERCENT_MORE) / 100x = YEAR_THIS

x = \frac{YEAR_THIS}{(100 + YEAR_PERCENT_MORE) / 100}

x \approx YEAR_LAST

randRange( 20, 50 ) parseFloat( BILL ).toFixed( 2 ) randRange( 1, 4 ) * 5 BILL * ( TIP_PERCENT / 100 ) parseFloat( TIP_AMOUNT ).toFixed( 2 ) parseFloat( BILL * .1 ).toFixed( 2 ) parseFloat( BILL * .05 ).toFixed( 2 ) BILL + TIP_AMOUNT parseFloat( TOTAL ).toFixed( 2 )

person(1) {has {breakfast|lunch|dinner}|eats} at a {restaurant|cafe} and the cost of his(1) meal is $BILL_FORMAT. He(1) would like to leave a TIP_PERCENT% tip. What is his(1) total bill including tip?

TOTAL

The tip amount is equal to TIP_PERCENT\% \times \$BILL_FORMAT.

We can find the tip by first calculating a 10\% tip and then dividing that number by two. and then multiplying that number by two. and a 5\% tip, and then adding those two numbers together.

To calculate a 10\% tip, move the decimal point in \$BILL_FORMAT one place to the left.

10\% \times \$BILL_FORMAT = \$TIP_TEN_PERCENT

To calculate a 5\% tip, divide the 10\% tip amount in half.

5\% \times \$BILL_FORMAT = \$TIP_TEN_PERCENT \div 2 = \$TIP_FIVE_PERCENT.

To calculate a 20\% tip, multiply the 10\% tip amount by two.

20\% \times \$BILL_FORMAT = \$TIP_TEN_PERCENT \times 2 = \$TIP_AMOUNT_FORMAT.

Adding the two amounts together gives us \$TIP_TEN_PERCENT + \$TIP_FIVE_PERCENT = \$TIP_AMOUNT_FORMAT.

The cost of the meal plus the amount of the tip will equal the total bill amount.

\$BILL_FORMAT + \$TIP_AMOUNT_FORMAT = \$TOTAL_FORMAT.

The total cost of the bill is \$TOTAL_FORMAT.