# Khan/khan-exercises

### Subversion checkout URL

You can clone with
or
.
Fetching contributors…

Cannot retrieve contributors at this time

154 lines (148 sloc) 13.323 kB
 Markup and commission word problems
randRange(85, 160) randRange(1,11)*5+30 roundTo(2, (MARKUP_RATE/100) * WHOLESALE)

person(1)'s Furniture Store buys a furniture(1) at a wholesale price of $localeToFixed(WHOLESALE, 2). If the markup rate at person(1)'s Furniture Store is MARKUP_RATE\%, what is the markup for the furniture(1)? \$\ TOTAL_MARKUP

Remember that a markup rate is a percentage of the wholesale price that a store adds to get a selling or retail price. The amount of markup can be found with the following equation:

markup rate \times wholesale price = amount of markup

Since the markup rate is a percentage, we have to convert it into a decimal first. Percent means "out of one hundred," so MARKUP_RATE\% is equivalent to \dfrac{MARKUP_RATE}{100} which is also equal to MARKUP_RATE \div 100.

MARKUP_RATE \div 100 = localeToFixed(MARKUP_RATE/100, 2)

Now you have all the information you need to use the formula above!

localeToFixed(MARKUP_RATE/100, 2) \times $localeToFixed(WHOLESALE, 2) =$localeToFixed(TOTAL_MARKUP, 2)

The amount of markup on the furniture(1) is $localeToFixed(TOTAL_MARKUP, 2). randRange(85, 160) randRange(1,11)*5 + 30 localeToFixed(roundTo(2,(MARKUP_RATE/100)*WHOLESALE), 2) roundTo(2,((MARKUP_RATE/100)*WHOLESALE)+WHOLESALE) The manager at person(1)'s Furniture Store is trying to figure out how much to charge for a furniture(1) that just arrived. If the furniture(1) was bought at a wholesale price of$localeToFixed(WHOLESALE, 2) and person(1)'s Furniture Store marks up all furniture by MARKUP_RATE\%, at what price should the manager sell the furniture(1)?

\$\ RETAIL_PRICE In order to find the retail price, we must first find the amount of markup. Remember that a markup rate is a percentage of the wholesale price that a store adds to get a selling or retail price. With this knowledge, we can figure out the following equation: markup rate \times wholesale price = amount of markup Since the markup rate is a percentage, we have to convert it into a decimal first. Percent means "out of one hundred," so MARKUP_RATE\% is equivalent to \dfrac{MARKUP_RATE}{100} which is also equal to MARKUP_RATE \div 100. MARKUP_RATE \div 100 = localeToFixed(MARKUP_RATE/100, 2) Now you have all the information you need to find the amount of markup! localeToFixed(MARKUP_RATE/100, 2) \times$localeToFixed(WHOLESALE, 2) = $TOTAL_MARKUP Since the markup rate is a percentage of the wholesale price that is added to get the retail price, we can find the retail price with the following equation: amount of markup + wholesale price = retail price$TOTAL_MARKUP + $localeToFixed(WHOLESALE, 2) =$localeToFixed(RETAIL_PRICE, 2)

The retail price of the furniture(1) should be $localeToFixed(RETAIL_PRICE, 2). randRange(5,15) randRange(250,880) roundTo(2,(COMMISSION_RATE/100)*PRICE) person(1) works at a nearby electronics store. He makes a commission of COMMISSION_RATE\% on everything he sells. If he sells a electronic(1) for$localeToFixed(PRICE, 2), how much money does person(1) make in commission?

person(1) works at a nearby electronics store. She makes a commission of COMMISSION_RATE\% on everything she sells. If she sells a electronic(1) for $localeToFixed(PRICE, 2), how much money does person(1) make in commission? \$\ TOTAL_COMMISSION

A commission rate is a percentage of the retail price of an item that the seller makes if he or she can sell the item. To find the amount of commission made, use the following formula:

commission rate \times retail price = amount of commission made

Since the commission rate is a percentage, we have to convert it into a decimal first. Percent means "out of one hundred," so COMMISSION_RATE\% is equivalent to \dfrac{COMMISSION_RATE}{100} which is also equal to COMMISSION_RATE \div 100.

COMMISSION_RATE \div 100 = localeToFixed(COMMISSION_RATE/100, 2)

Now you have all the information you need to use the formula above!

localeToFixed(COMMISSION_RATE/100, 2) \times $localeToFixed(PRICE, 2) =$localeToFixed(TOTAL_COMMISSION, 2)

The amount of commission person(1) makes by selling a electronic(1) is $localeToFixed(TOTAL_COMMISSION, 2). randRange(1,8)*50 randRange(5,15) randRange(1,11)*550 localeToFixed(roundTo(2,(COMMISSION_RATE/100)*SALES), 2) roundTo(2,(COMMISSION_RATE/100)*SALES+BASE_SALARY) person(1) earns a base salary of$localeToFixed(BASE_SALARY, 2) every week with an additional COMMISSION_RATE\% commission on everything he sells. If person(1) sold $localeToFixed(SALES, 2) worth of items last week, what was his total pay? person(1) earns a base salary of$localeToFixed(BASE_SALARY, 2) every week with an additional COMMISSION_RATE\% commission on everything she sells. If person(1) sold $localeToFixed(SALES, 2) worth of items last week, what was her total pay? \$\ TOTAL_SALARY

First, find the amount of commission made by using the following formula:

commission rate \times total sales = amount of commission made

Since the commission rate is a percentage, we have to convert it into a decimal first. Percent means "out of one hundred," so COMMISSION_RATE\% is equivalent to \dfrac{COMMISSION_RATE}{100} which is also equal to COMMISSION_RATE \div 100.

COMMISSION_RATE \div 100 = localeToFixed(COMMISSION_RATE/100, 2)

Now you have all the information you need to find the amount of commission made:

localeToFixed(COMMISSION_RATE/100, 2) \times $localeToFixed(SALES, 2) =$TOTAL_COMMISSION

We can find the total salary for person(1) by adding the amount of commission made to his base salary.

We can find the total salary for person(1) by adding the amount of commission made to her base salary.

amount of commission made + base salary = total salary

$TOTAL_COMMISSION +$localeToFixed(BASE_SALARY, 2) = $localeToFixed(TOTAL_SALARY, 2) The total salary person(1) made last week was$localeToFixed(TOTAL_SALARY, 2).

Something went wrong with that request. Please try again.