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))? (Round to the nearest hundredth or cent.)
\$TOTAL_PRICEIn order to 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} =
Percent means "out of one hundred," so SALES_TAX\% is equivalent to \displaystyle\frac{SALES_TAX}{100} which is also equal to SALES_TAX \div 100.
SALES_TAX \div 100 = localeToFixed(SALES_TAX/100, 2)
Multiply the sales tax you just converted into a decimal by the original price to find the amount of sales tax that must be paid.
\blue{localeToFixed(SALES_TAX/100, 2)} \times \green{$DOLLARS} = \purple{$localeToFixed((SALES_TAX/100) * DOLLARS, 2)}
Add the sales tax you just found to the original price to find the final price person(1) paid.
\purple{$localeToFixed((SALES_TAX/100) * DOLLARS, 2)} + \green{$localeToFixed(DOLLARS, 2)} = $localeToFixed(TOTAL_PRICE, 2)
person(1) needs to pay $localeToFixed(TOTAL_PRICE, 2).
If the sales tax in your city is localeToFixed(TAX, 1)\%, how much tax would you pay for an item that costs \$PRICE before tax? Round to the nearest cent.
\$TOTAL_TAXIn order to 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} =
Percent means "out of one hundred," so localeToFixed(TAX, 1)\% is equivalent to localeToFixed(TAX, 1) \div 100.
localeToFixed(TAX, 1) \div 100 = localeToFixed(TAX/100, 3)
Multiply the sales tax you just converted into a decimal by the original price to find the amount of sales tax that must be paid. Round to the nearest cent.
localeToFixed(TAX/100, 3) \times $PRICE = $localeToFixed(TOTAL_TAX, 2)
You would pay $localeToFixed(TOTAL_TAX, 2) in sales tax.
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.
$PRICE \times DISCOUNT\% =
Percent means "out of one hundred," so DISCOUNT\% is equivalent to \displaystyle\frac{DISCOUNT}{100} which is also equal to DISCOUNT \div 100.
DISCOUNT \div 100 = localeToFixed(DISCOUNT/100, 2)
Multiply the discount you just converted into a decimal by the original price to find the amount of money saved.
localeToFixed(DISCOUNT/100, 2) \times $PRICE = $localeToFixed((DISCOUNT/100) * PRICE, 2)
Subtract the discount you just found from the original price to get the final price person(1) paid.
$PRICE - $localeToFixed(DISCOUNT/100*PRICE, 2) = $localeToFixed(DISCOUNT_PRICE, 2)
person(1) paid $localeToFixed(DISCOUNT_PRICE, 2) for the clothing(1).
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_DISCOUNTIn order to find the amount saved with the discount, multiply the discount by the original price.
DISCOUNT\% \times $PRICE =
Percent means "out of one hundred," so DISCOUNT\% is equivalent to \displaystyle\frac{DISCOUNT}{100} which is also equal to DISCOUNT \div 100.
DISCOUNT \div 100 = localeToFixed(DISCOUNT/100, 2)
Multiply the discount you just converted into a decimal by the original price to find the amount of money saved.
localeToFixed(DISCOUNT/100, 2) \times $PRICE = $localeToFixed(TOTAL_DISCOUNT, 2)
You would save $localeToFixed(TOTAL_DISCOUNT, 2) because of the discount.
person(1) {has {breakfast|lunch|dinner}|eats} at a {restaurant|cafe} and the cost of his meal is \$BILL_FORMAT. He would like 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. She would like to leave a TIP_PERCENT\% tip. What is her total bill including tip?
\$TOTALThe 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.