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": "The vending machines sell chips for 40 cents and candy bars for 75 cents. George spent $5 and got 3 bags of chips and had 1% of his money left. How many candy bars did he buy?",
"answer": "George got $.05 in change because 5 x .01 = <<5*.01=.05>>.05\nGeorge spent $4.95 because 5 - .05 = <<5-.05=4.95>>4.95\nGeorge spent $1.2 on chips because 3 x .4 = <<3*.4=1.2>>1.2\nGeorge spent 3.75 on candy bars because 4.95 - 1.2 = <<4.95-1.2=3.75>>3.75\nGeorge bought 5 candy bars because 3.75 / .75 = <<5=5>>5\n#### 5",
"id_orig": 434,
"id_shuffled": 80,
"question_annotated": "The vending machines sell {item1,chips} for {price1,40} cents and {item2,candy bars} for {price2,75} cents. {name,George} spent {cur,$}{total,5} and got {n1,3} bags of {item1,chips} and had {p,1}% of his money left in change. How many {item2,candy bars} did he buy?\n\n#init:\n- name = sample(names_male)\n- item1, item2 = sample(['pretzels', 'popcorn', 'gum', 'cookies', 'crackers'], 2)\n- cur = sample(currencies_sym)\n- $price1 = range(25, 100, 5)\n- $price2 = range(50, 150, 5)\n- $total = range(500, 1500, 100)\n- $n1 = range(1, 10)\n- $p = range(1, 10)\n\n#conditions:\n- price2 > price1\n- is_int(total * p /100)\n- is_int((total * (100 - p) / 100 - n1 * price1 / 100) / (price2 / 100))\n- (total * (100 - p) / 100 - n1 * price1 / 100) % (price2 / 100) == 0\n\n#answer: int((total * (100 - p) / 100 - n1 * price1 / 100) / (price2 / 100))",
"answer_annotated": "{name} got {cur}{total * p / 100} in change because {total} x {p}/100 = <<{total}*{p}/100={total * p // 100}>>{total * p // 100}\n{name} spent {cur}{total * (100 - p) // 100} because {total} - {total * p // 100} = <<{total}-{total * p // 100}={total * (100 - p) // 100}>>{total * (100 - p) // 100}\n{name} spent {cur}{n1 * price1 / 100} on {item1} because {n1} x {price1/100} = <<{n1}*{price1/100}={n1 * price1 / 100}>>{n1 * price1 / 100}\n{name} spent {(total * (100 - p) / 100 - n1 * price1 / 100)} on {item2} because {total * (100 - p) / 100} - {n1 * price1 / 100} = <<{total * (100 - p) / 100}-{n1 * price1 / 100}={total * (100 - p) / 100 - n1 * price1 / 100}>>{total * (100 - p) / 100 - n1 * price1 / 100}\n{name} bought {int((total * (100 - p) / 100 - n1 * price1 / 100) / (price2 / 100))} {item2} because {total * (100 - p) / 100 - n1 * price1 / 100} / {price2/100} = <<{int((total * (100 - p) / 100 - n1 * price1 / 100) / (price2 / 100))}={int((total * (100 - p) / 100 - n1 * price1 / 100) / (price2 / 100))}>>{int((total * (100 - p) / 100 - n1 * price1 / 100) / (price2 / 100))}\n#### {int((total * (100 - p) / 100 - n1 * price1 / 100) / (price2 / 100))}"
}