# Khan/khan-exercises

### Subversion checkout URL

You can clone with
or
.
Fetching contributors…

Cannot retrieve contributors at this time

145 lines (119 sloc) 5.606 kB
 Arithmetic word problems
randRange( 3, 12 ) randRange( 1, ITEMS_PER_GROUP - 1 ) randRange( 2, 12 ) GROUPS * ITEMS_PER_GROUP ITEMS_IN_GROUPS + ITEMS_LEFT getNontrivialFactor( TOTAL_ITEMS ) TOTAL_ITEMS / NEW_ITEMS_PER_GROUP
person(1) is putting itemPlural(1) into groupPlural(1). If he(1) puts plural( ITEMS_PER_GROUP, item(1), itemPlural(1) ) in each group(1) he(1) will groupVerb(1) plural( GROUPS, group(1), groupPlural(1) ) and have plural( ITEMS_LEFT, item(1), itemPlural(1) ) left over. If he(1) instead puts plural( NEW_ITEMS_PER_GROUP, item(1), itemPlural(1) ) in each group(1), how many groupPlural(1) of itemPlural(1) can he(1) groupVerb(1)?

NEW_GROUPS

plural( GROUPS, group(1), groupPlural(1) ) of plural( ITEMS_PER_GROUP, item(1), itemPlural(1) ) each results in GROUPS \times ITEMS_PER_GROUP = ITEMS_IN_GROUPS itemPlural(1).

plural( ITEMS_IN_GROUPS, item(1), itemPlural(1) ) plus ITEMS_LEFT left over equals TOTAL_ITEMS total itemPlural(1).

plural( TOTAL_ITEMS, item(1), itemPlural(1) ) divided into groups of NEW_ITEMS_PER_GROUP is TOTAL_ITEMS \div NEW_ITEMS_PER_GROUP = NEW_GROUPS groupPlural(1).

randRange( 4, 12 ) randRange( 4, 12 ) randRange( 4, 12 ) ITEM_1_COUNT * ITEM_1_COST TOTAL_SPENT_ON_1 + ITEM_2_COST
person(1) bought plural( ITEM_1_COUNT, storeItem(1, 1), storeItemPlural(1, 1) ), all costing the same amount, from the store(1) store. He(1) also bought a storeItem(1, 2) for plural( ITEM_2_COST, "dollar" ). He(1) spent a total of plural( TOTAL_SPENT, "dollar" ). How much did each storeItem(1, 1) cost?

ITEM_1_COST

Of the plural( TOTAL_SPENT, "dollar" ), he(1) spent plural( ITEM_2_COST, "dollar" ) on a storeItem(1, 2), so he(1) must have spent a total of TOTAL_SPENT - ITEM_2_COST = TOTAL_SPENT_ON_1 dollars on storeItemPlural(1, 1).

He(1) spent plural( TOTAL_SPENT_ON_1, "dollar" ) on plural( ITEM_1_COUNT, storeItem(1, 1), storeItemPlural(1, 1) ), so he(1) must have spent TOTAL_SPENT_ON_1 \div ITEM_1_COUNT = ITEM_1_COST dollars on each storeItem(1, 1).

randRange( 10, 99 ) getNontrivialFactor( TOTAL_ITEMS ) TOTAL_ITEMS / ITEMS getNontrivialFactor( TOTAL_ITEMS ) TOTAL_ITEMS / NEW_ITEMS
When person(1) places plural( ITEMS, item(1), itemPlural(1) ) in each group(1) he(1) ends up with plural( GROUPS, group(1), groupPlural(1) ). If he(1) wants plural( NEW_GROUPS, group(1), groupPlural(1) ), how many itemPlural(1) should he(1) put in each group(1)?

NEW_ITEMS

plural( ITEMS, item(1), itemPlural(1) ) \times plural( GROUPS, group(1), groupPlural(1) ) = plural( TOTAL_ITEMS, item(1), itemPlural(1) ).

If we divide the plural( TOTAL_ITEMS, item(1), itemPlural(1) ) into plural( NEW_GROUPS, group(1), groupPlural(1) ), then we get TOTAL_ITEMS \div NEW_GROUPS = NEW_ITEMS itemPlural(1) per group(1).

Something went wrong with that request. Please try again.