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": "A loaf of bread at the bakery costs $2. Bagels cost $1 each. How much more do 3 loaves of bread cost than 2 bagels?",
"answer": "3 loaves of bread cost 3 * $2 = $<<3*2=6>>6.\n2 bagels cost 2 * $1 = $<<2*1=2>>2.\nThe loaves of bread cost $6 - $2 = $<<6-2=4>>4 more than the bagels.\n#### 4",
"id_orig": 799,
"id_shuffled": 38,
"question_annotated": "A loaf of {item1,bread} at the {shop,bakery} costs {currency,$}{price1,2}. The cost of a {item2,Bagel} is {frac,half} of a loaf of {item1,bread}. The {shop, bakery} has a promotion that if one buys {n22,2} {item2,bagel}s or more, they get a {discount,10}% discount on {item2,bagel}s. How much more do {n1,3} loaves of {item1,bread} cost than {n2,2} {item2,bagel}s?\n\n#init:\n- item1 = sample([\"bread\", \"sourdough\"])\n- item2 = sample([\"bagel\", \"muffin\", \"croissant\", \"biscuit\"])\n- shop = sample([\"bakery\", \"cafe\", \"store\", \"market\"])\n- currency = sample(currencies_sym)\n- $price1 = range(4, 20)\n- $price2 = np.arange(1.25, 10.51, 0.25)\n- $frac = sample(fraction_alnum)\n- $n1 = range(2, 13)\n- $n2 = range(5, 13)\n- $n22 = range(3, 8)\n- $discount = range(5, 26, 5)\n\n#conditions:\n- price2 == frac * price1\n- is_int(price2 * 10) == False\n- n1 * price1 > n2 * price2\n- n22 < n2\n- is_int(n1 * price1 - n2 * price2)\n- is_int(n2 * price2 * discount/100)\n\n#answer: n1 * price1 - int(n2 * price2 * (1-discount/100))",
"answer_annotated": "{n1} loaves of {item1} cost {n1} * {currency}{price1} = {currency}<<{n1}*{price1}={n1*price1}>>{n1*price1}.\n{n2} {item2}s cost {n2} * {currency}{price2} = {currency}<<{n2}*{price2}={n2*price2}>>{n2*price2}. But because of promotion we get a {discount}% discount, which means we pay {n2*price2} * {100-discount}% = {currency}{int(n2*price2 * (1-discount/100))}\nThe loaves of {item1} cost {currency}{n1*price1} - {currency}{int(n2*price2 * (1-discount/100))} = {currency}<<{n1*price1}-{int(n2*price2 * (1-discount/100))}={n1*price1-int(n2*price2 * (1-discount/100))}>>{n1*price1-int(n2*price2 * (1-discount/100))} more than the {item2}s.\n#### {int(n1*price1-int(n2*price2 * (1-discount/100)))}"
}