person(1) buys a basket of plural_form(fruit(1)) on sale for \$DOLLARS
before tax. The sales tax is SALES_TAX\%
. What is the total price person(1) pays for the basket of plural_form(fruit(1))?
\$\
TOTAL_PRICETo find the total price, first find the amount of sales tax paid by multiplying the sales tax by the original price of the basket of plural_form(fruit(1)).
\blue{SALES_TAX\%} \times \green{$DOLLARS} = \text{?}
Percent means "out of one hundred," so \blue{SALES_TAX\%}
is equivalent to \blue{\dfrac{SALES_TAX}{100}}
which is also equal to \blue{SALES_TAX \div 100}
.
\blue{SALES_TAX \div 100 = localeToFixed(SALES_TAX/100, 2)}
To find the amount of sales tax that must be paid, multiply \blue{localeToFixed(SALES_TAX/100, 2)}
by the original price.
\blue{localeToFixed(SALES_TAX/100, 2)} \times \green{$DOLLARS} = \purple{$localeToFixed((SALES_TAX/100) * DOLLARS, 2)}
To find the final price person(1) paid, add the sales tax you just found to the original price.
\purple{$localeToFixed((SALES_TAX/100) * DOLLARS, 2)} + \green{$localeToFixed(DOLLARS, 2)} = $localeToFixed(TOTAL_PRICE, 2)
If the sales tax in your city is localeToFixed(TAX, 1)\%
, and an item costs
\$PRICE
before tax, how much tax would you pay on that item?
Round to the nearest hundredth or cent.
\$\
TOTAL_TAXTo find the amount of sales tax you would pay, multiply the sales tax by the original price of the item.
\blue{localeToFixed(TAX, 1)\%} \times \green{\$PRICE} = \text{?}
Percent means "out of one hundred," so \blue{localeToFixed(TAX, 1)\%}
is equivalent to \blue{localeToFixed(TAX, 1) \div 100}
.
\blue{localeToFixed(TAX, 1) \div 100 = localeToFixed(TAX / 100, 3)}
To find the amount of sales tax that must be paid, multiply \blue{localeToFixed(TAX / 100, 3)}
by the original price. Round to the nearest cent.
\blue{localeToFixed(TAX/100, 3)} \times \green{\$PRICE} = \$localeToFixed(TOTAL_TAX, 2)
person(1) bought a new clothing(1) at the store when they were having a DISCOUNT\%
off sale. If the regular price of the clothing(1) was \$PRICE
, how much did person(1) pay with the discount?
\$\
DISCOUNT_PRICEFirst, find the amount of the discount by multiplying the original price of the of the item by the discount.
\blue{\$PRICE} \times \green{DISCOUNT\%} = \text{?}
Percent means "out of one hundred," so \green{DISCOUNT\%}
is equivalent to \green{\dfrac{DISCOUNT}{100}}
which is also equal to \green{DISCOUNT \div 100}
.
\green{DISCOUNT \div 100 = localeToFixed(DISCOUNT/100, 2)}
To find the amount of money saved, multiply \green{localeToFixed(DISCOUNT/100, 2)}
by the original price.
\green{localeToFixed(DISCOUNT/100, 2)} \times \blue{\$PRICE} = \purple{\$localeToFixed((DISCOUNT/100) * PRICE, 2)}
To find the final price person(1) paid, subtract \purple{\$localeToFixed((DISCOUNT/100) * PRICE, 2)}
from the original price.
\blue{\$PRICE} - \purple{\$localeToFixed(DISCOUNT / 100 * PRICE, 2)} = $localeToFixed(DISCOUNT_PRICE, 2)
The pizza(1) store is having a DISCOUNT\%
off sale on all of its plural_form(pizza(1)). If the pizza(1) you want regularly costs \$PRICE
, how much would you save with the discount?
\$\
TOTAL_DISCOUNTTo find the amount saved with the discount, multiply the discount by the original price.
\blue{DISCOUNT\%} \times \green{\$PRICE} = \text{?}
Percent means "out of one hundred," so \blue{DISCOUNT\%}
is equivalent to \blue{\dfrac{DISCOUNT}{100}}
which is also equal to \blue{DISCOUNT \div 100}
.
\blue{DISCOUNT \div 100 = localeToFixed(DISCOUNT/100, 2)}
To find the amount of money you saved, multiply \blue{localeToFixed(DISCOUNT/100, 2)}
by the original price.
\blue{localeToFixed(DISCOUNT/100, 2)} \times \green{\$PRICE} = \$localeToFixed(TOTAL_DISCOUNT, 2)
person(1) {has {breakfast|lunch|dinner}|eats} at a {restaurant|cafe} and the cost of his meal is \$BILL_FORMAT
. Because of the service, he wants to leave a TIP_PERCENT\%
tip. What is his total bill including tip?
person(1) {has {breakfast|lunch|dinner}|eats} at a {restaurant|cafe} and the cost of her meal is \$BILL_FORMAT
. Because of the service, she wants to leave a TIP_PERCENT\%
tip. What is her total bill including tip?
\$\
TOTALThe tip amount is equal to TIP_PERCENT\% \times \green{\$BILL_FORMAT}
.
We can find the tip by first calculating a \purple{10\%}
tip
and dividing it by two.
and multiplying it by two.
and a \pink{5\%}
tip, and then adding those two numbers together.
To calculate a \purple{10\%}
tip, move the decimal point in \green{\$BILL_FORMAT}
one place to the left.
\purple{10\%} \times \green{\$BILL_FORMAT} = \purple{\$TIP_TEN_PERCENT}
To calculate a \blue{5\%}
tip, divide the \purple{10\%}
tip amount in half.
\blue{5\%} \times \green{\$BILL_FORMAT} = \purple{\$TIP_TEN_PERCENT} \div 2 = \blue{\$TIP_FIVE_PERCENT}
.
To calculate a \pink{5\%}
tip, divide the \purple{10\%}
tip amount in half.
\pink{5\%} \times \green{\$BILL_FORMAT} = \purple{\$TIP_TEN_PERCENT} \div 2 = \pink{\$TIP_FIVE_PERCENT}
.
To calculate a \blue{20\%}
tip, multiply the 10\%
tip amount by two.
\blue{20\%} \times \green{\$BILL_FORMAT} = \purple{\$TIP_TEN_PERCENT} \times 2 = \blue{\$TIP_AMOUNT_FORMAT}
.
Adding the two amounts together gives us \purple{\$TIP_TEN_PERCENT} + \pink{\$TIP_FIVE_PERCENT} = \blue{\$TIP_AMOUNT_FORMAT}
.
The total bill is the cost of the meal plus the tip.
\green{\$BILL_FORMAT} +
\blue{\$TIP_AMOUNT_FORMAT}
\purple{\$TIP_AMOUNT_FORMAT}
= \$TOTAL_FORMAT
.