Still experimenting

This commit is contained in:
abdulhakeem 2025-01-30 23:44:12 -06:00
parent a3378bd95f
commit ff13dc6825
357 changed files with 2888 additions and 0 deletions

View file

@ -0,0 +1,8 @@
{
"question": "Sally went to the seashore for vacation. Her parents gave her $10 to buy whatever she wanted. At the trinket shop, taffy was on sale for \"Buy 1 pound at $3, get 1 pound 1/2 off.\" She scooped up 2 pounds. She also bought a mixed bag of seashells for $1.50 and 4 magnets that were $0.25 each. How much money does Sally have left?",
"answer": "Taffy is buying 1 pound for $3 and gets 1 pound half off. So 1/2 off of 1 pound is $3/2 = $1.50+$3.00=$4.50\n4 magnets at $0.25 each is 4*.25=$<<4*0.25=1.00>>1.00\nWhen you add all her purchases, $4.50+$1.50+$1.00 = $<<4.5+1.5+1=7.00>>7.00\nShe had $10 and spent $7 so she had $10-$7 = $<<10-7=3.00>>3.00 left over\n#### 3",
"id_orig": 410,
"id_shuffled": 40,
"question_annotated": "{name,Sally} went to the {location,seashore} for vacation. Her parents gave her {cur,$}{total,10} to buy whatever she wanted. At the {shop,trinket shop}, {item1,taffy} was on sale for \"Buy {n1,1} {unit,pound}s at {cur,$}{p1,3} per {unit,pound}, get {n2,1} {unit,pound}s {discount,1/2} off.\" She scooped up {n12,2} {unit,pound}s. She also bought a mixed bag of {item2,seashells} for {cur,$}{p2,1.50} and {n3,4} {item3,magnets} that were {cur,$}{p3,0.25} each. How much money does {name,Sally} have left?\n\n#init:\n- name = sample(names_female)\n- location = sample([\"beach\", \"boardwalk\", \"pier\", \"coast\"])\n- shop = sample([\"souvenir store\", \"gift shop\", \"beach shop\", \"seaside store\"])\n- item1 = sample([\"fudge\", \"saltwater taffy\", \"rock candy\", \"cotton candy\"])\n- item2 = sample([\"sand dollars\", \"starfish\", \"sea glass\", \"coral pieces\"])\n- item3 = sample([\"postcards\", \"keychains\", \"stickers\", \"pins\"])\n- unit = sample([\"pound\", \"kilogram\", \"kg\"])\n- cur = sample(currencies_sym)\n- $total = range(1200, 1500, 100)\n- $n1 = range(15, 18)\n- $n2 = range(4, 10)\n- $n12 = range(20, 24)\n- $k = range(2, 5)\n- $n3 = range(11, 19)\n- $p1 = range(20, 24)\n- $p2 = np.arange(11.25, 12, 0.25)\n- $p3 = np.arange(20.25, 21.26, 0.25)\n- $discount = sample(fraction_nums[:4])\n\n#conditions:\n- n2 < n1\n- n12 == n1 + n2 + k\n- 0 <= k < n1\n- is_int(n1 * p1 + n2 * (1-discount) * p1 + k * p1 + p2 + n3 * p3)\n- n1 * p1 + n2 * (1-discount) * p1 + k * p1 + p2 + n3 * p3 < total\n\n#answer: total-int((n1*p1+(n2*(1-discount))*p1+k*p1)+p2+n3*p3)",
"answer_annotated": "{item1} is {n1} {unit}s for {cur} {p1} and gets {n2} {unit}s {discount} off. So {discount} off of {n2} {unit}s is {cur}{n2*discount}*{p1} = {cur}{n2*discount*p1}. The rest of {k} {unit}s does not have discount and come at {k*p1} so total is {n1}*{p1} + {n2}*{1-discount}*{p1} + {k}*{p1} = <<{n1}*{p1} + {n2}*{1-discount}*{p1} + {k}*{p1} = {n1*p1+(n2*(1-discount))*p1+k*p1}>>{n1*p1+(n2*(1-discount))*p1+k*p1}\n{n3} {item3} at {cur}{p3} each is {n3}*{p3}={cur}<<{n3}*{p3}={n3*p3}>>{n3*p3}\nWhen you add all her purchases, {cur}{n1*p1+(n2*(1-discount))*p1+k*p1}+{cur}{p2}+{cur}{n3*p3} = {cur}<<{n1*p1+(n2*(1-discount))*p1+k*p1}+{p2}+{n3*p3}={int((n1*p1+(n2*(1-discount))*p1+k*p1)+p2+n3*p3)}>>{int((n1*p1+(n2*(1-discount))*p1+k*p1)+p2+n3*p3)})\nShe had {cur}{total} and spent {cur}{int((n1*p1+(n2*(1-discount))*p1+k*p1)+p2+n3*p3)} so she had {cur}{total}-{cur}{int((n1*p1+(n2*(1-discount))*p1+k*p1)+p2+n3*p3)} = {cur}<<{total}-{int((n1*p1+(n2*(1-discount))*p1+k*p1)+p2+n3*p3)}={total-int((n1*p1+(n2*(1-discount))*p1+k*p1)+p2+n3*p3)}>>{total-int((n1*p1+(n2*(1-discount))*p1+k*p1)+p2+n3*p3)} left over\n#### {total-int((n1*p1+(n2*(1-discount))*p1+k*p1)+p2+n3*p3)}"
}