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": "John collects garbage from 3 different apartment complexes. The first two have 200 apartments each and the last one is 60% bigger than the other two combined. He collects garbage 3 times a week from each place and he gets paid $.40 per collection for each apartment. How much money does he make in a week?",
"answer": "The first two complexes have 200+200=<<200+200=400>>400 apartments\nThe third one has 400*.6=<<400*.6=240>>240 more apartments than those 2 combined\nSo in total, it has 400+240=<<400+240=640>>640 apartments\nSo he goes to 640+400=<<640+400=1040>>1040 apartments each time\nThat means he visits 1040*3=<<1040*3=3120>>3120 apartments every week\nSo he makes 3120*$0.4=$<<3120*0.4=1248>>1248 every week\n#### 1248",
"id_orig": 1165,
"id_shuffled": 49,
"question_annotated": "{name} collects garbage from {n} different apartment complexes. The first {n_first} have {a} apartments each and the last one is {p}% bigger than the other {n_first} combined. {name} collects garbage {f} times a week from each place and he gets paid {cur}{r} per collection for each apartment. How much money does he make in a week?\n\n#init:\n- name = sample(names_male)\n- cur = sample(currencies_sym)\n- $n = range(3, 8)\n- $n_first = range(2, 7)\n- $a = range(100, 500, 50)\n- $p = range(20, 81, 5)\n- $f = range(2, 6)\n- $r = [0.25, 0.30, 0.35, 0.40, 0.45, 0.50]\n\n#conditions:\n- n_first == n-1\n- is_int((n-1)*a*p/100)\n- is_int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r)\n\n\n#answer: int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r)",
"answer_annotated": "The first {n_first} complexes have {n_first}*{a}=<<{n_first}*{a}={n_first*a}>>{n_first*a} apartments\nThe {n}th one has {n_first*a}*{p/100}=<<{n_first*a}*{p/100}={(n-1)*a*p/100}>>{int((n-1)*a*p/100)} more apartments than those {n_first} combined. So it has {n_first*a}+{int((n-1)*a*p/100)}=<<{n_first*a}+{int((n-1)*a*p/100)}={int(n_first*a+(n-1)*a*p/100)}>>{int(n_first*a+(n-1)*a*p/100)} apartments.\nSo in total, he goes to {int(n_first*a+(n-1)*a*p/100)}+{n_first*a}=<<{int(n_first*a+(n-1)*a*p/100)}+{n_first*a}={(n-1)*a + (n-1)*a + (n-1)*a*p/100}>>{int((n-1)*a + (n-1)*a + (n-1)*a*p/100)} apartments each time\nThat means he visits {int((n-1)*a + (n-1)*a + (n-1)*a*p/100)}*{f}=<<{int((n-1)*a + (n-1)*a + (n-1)*a*p/100)}*{f}={((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f}>>{int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f)} apartments every week\nSo he makes {int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f)}*{cur}{r}={cur}<<{int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f)}*{r}={int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r)}>>{int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r)} every week\n#### {int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r)}"
}