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": "David has $12.48 and wants to buy 16 bolts from a bin at the hardware store. Each bolt costs $0.03. How much money does David have left after paying for the bolts?",
"answer": "David paid 16 * 0.03 = $<<16*0.03=0.48>>0.48 for the bolts.\nDavid has $12.48 - $0.48 = $12 left.\n#### 12",
"id_orig": 873,
"id_shuffled": 30,
"question_annotated": "{name1,Aisha} and {name2,Jack} went to a construction supply store. {name2,Jack} is a member, but {name1,Aisha} is not. {name1,Aisha} has {cur,$}{initial_1,95.23} and wants to buy {n1,23} {item1,screw}s from a bin at the store. She also needs {n2,6} {item2,anchors}s, each costing {cur,$}{p2,0.90}. Each {item1,screw} costs {cur,$}{p1,0.21}. Additionally, {name1,Aisha} picks up {n3,2} gallons of paint. {name2,Jack} starts with {cur,$}{initial_2,100} and wants {n33,4} gallons of paint, each priced at {cur,$}{p3,7.50}, and {n44,5} carpenter pencils, each costing {cur,$}{p4,1.60}. The store offers a 10% discount on paint for members. How much more money does {name1,Aisha} have left than {name2,Jack} after they leave the store?\n\n#init:\n- name1 = sample(names_female)\n- name2 = sample(names_male)\n- cur = sample(currencies_sym)\n- item1, item2 = sample([\"screw\", \"nail\", \"washer\", \"nut\", \"anchor\"], 2)\n- store_type = sample([\"hardware\", \"home improvement\", \"construction supply\"])\n- $initial_1 = fix_floats(shuffle_list(list(np.arange(80.03, 101, 1.02))))\n- $n1 = range(15, 19)\n- $p1 = fix_floats(list(np.arange(0.21, 0.41, 0.01)))\n- $n2 = range(8, 11)\n- $p2 = fix_floats(list(np.arange(0.55, 0.71, 0.01)))\n- $initial_2 = range(80, 106, 10)\n- $p3 = fix_floats(list(np.arange(6.5, 9.05, 0.5)))\n- $n3 = range(8, 13, 2)\n- $n33 = range(10, 13, 2)\n- $n44 = range(3, 5)\n- $p4 = range(2, 5)\n\n#conditions:\n- initial_1 > n1 * p1 + n2 * p2 + n3 * p3\n- initial_2 > n33 * p3 + n44 * p4\n- is_int(n3 * p3)\n- is_int( n33 * p3 * 0.9)\n- initial_1 - (n1 * p1 + n2 * p2 + n3 * p3) > initial_2 - (n33 * p3 * 0.9 + n44 * p4)\n- int(n1 * p1 * 1000) % 10 == 0\n- int(n2 * p2 * 1000) % 10 == 0\n- is_int(initial_1 - (n1 * p1 + n2 * p2 + n3 * p3))\n- is_int(initial_2 - (n33 * p3 * 0.9 + n44 * p4))\n\n#answer: int((initial_1 - (n1 * p1 + n2 * p2 + n3 * p3)) - (initial_2 - (n33 * p3 * 0.9 + n44 * p4)))",
"answer_annotated": "{name1} spent {n1}*{p1} {item1}s+ {n2}*{p2} {item2}s+ {n3}*{p3} paints = {cur}{(n1 * p1 + n2 * p2 + n3 * p3)}. Remained {cur}{initial_1} - {cur}{(n1 * p1 + n2 * p2 + n3 * p3)} = {cur}{initial_1 - (n1 * p1 + n2 * p2 + n3 * p3)}. \n{name2} spent {n33}*{p3} for paints + {n44}*{p4} for pencils. Since {name2} is a member, he gets 10% discount on paints. So total {cur}{int(n33 * p3 * 0.9)} + {cur}{int(n44 * p4)} = {cur}{n33 * p3 * 0.9 + n44 * p4}. Remained {cur}{initial_2} - {cur}{(n33 * p3 * 0.9 + n44 * p4)} = {cur}{initial_2 - (n33 * p3 * 0.9 + n44 * p4)}.\n{name1} has {cur}{initial_1 - (n1 * p1 + n2 * p2 + n3 * p3)} - {cur}{initial_2 - (n33 * p3 * 0.9 + n44 * p4)} = {cur}{int((initial_1 - (n1 * p1 + n2 * p2 + n3 * p3)) - (initial_2 - (n33 * p3 * 0.9 + n44 * p4)))} more than {name2} remained.\n\n#### {int((initial_1 - (n1 * p1 + n2 * p2 + n3 * p3)) - (initial_2 - (n33 * p3 * 0.9 + n44 * p4)))}"
}