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": "There are 6 periods in the day for a normal student but John has to take 2 extra classes. Each class is 40 minutes long. He goes to class for 5 days a week. He then spends 1/16 of his weekly minutes each on Saturday and Sunday as extra learning time. How many hours a week does he spend learning?",
"answer": "He takes 6+2=<<6+2=8>>8 classes a day\nThat means he spends 40*8=<<40*8=320>>320 minutes per day in class\nSo he spends 320*5=<<320*5=1600>>1600 minutes a week\nThat means he spends 1600/16=<<1600/16=100>>100 minutes each on Saturday and Sunday\nSo he spends 1600+100+100=<<1600+100+100=1800>>1800 minutes per week\nSo he spends 1800/60=<<1800/60=30>>30 hours per week\n#### 30",
"id_orig": 1088,
"id_shuffled": 78,
"question_annotated": "There are {n1} periods in the day for a normal student but {name} has to take {n2} extra classes. Each class is {t} minutes long. He goes to class for {d} days a week. He then spends {frac} of his weekly minutes each on Saturday and Sunday as extra learning time. How many hours a week does he spend learning?\n\n#init:\n- name = sample(names_male)\n- $n1 = range(5, 10)\n- $n2 = range(1, 5)\n- $t = range(30, 61, 5)\n- $d = range(4, 7)\n- $frac = sample(fraction_alnum)\n\n#conditions:\n- is_int((n1 + n2) * t * d * frac)\n- is_int(((n1 + n2) * t * d + 2 * (n1 + n2) * t * d * frac) / 60)\n\n#answer: ((n1 + n2) * t * d + 2 * (n1 + n2) * t * d * frac) // 60",
"answer_annotated": "He takes {n1}+{n2}=<<{n1}+{n2}={n1+n2}>>{n1+n2} classes a day\nThat means he spends {t}*{n1+n2}=<<{t}*{n1+n2}={t*(n1+n2)}>>{t*(n1+n2)} minutes per day in class\nSo he spends {t*(n1+n2)}*{d}=<<{t*(n1+n2)}*{d}={t*(n1+n2)*d}>>{t*(n1+n2)*d} minutes a week\nThat means he spends {t*(n1+n2)*d}*{frac}=<<{t*(n1+n2)*d}*{frac}={int((n1 + n2) * t * d * frac)}>>{int((n1 + n2) * t * d * frac)} minutes each on Saturday and Sunday.\nSo he spends {t*(n1+n2)*d}+{int((n1 + n2) * t * d * frac)}+{int((n1 + n2) * t * d * frac)}=<<{t*(n1+n2)*d}+{int((n1 + n2) * t * d * frac)}+{int((n1 + n2) * t * d * frac)}={t*(n1+n2)*d + 2*int((n1 + n2) * t * d * frac)}>>{t*(n1+n2)*d + 2*int((n1 + n2) * t * d * frac)} minutes per week\nSo he spends {t*(n1+n2)*d + 2*int((n1 + n2) * t * d * frac)}/60=<<{t*(n1+n2)*d + 2*int((n1 + n2) * t * d * frac)}/60={((n1 + n2) * t * d + 2 * (n1 + n2) * t * d * frac) // 60}>>{((n1 + n2) * t * d + 2 * (n1 + n2) * t * d * frac) // 60} hours per week\n#### {((n1 + n2) * t * d + 2 * (n1 + n2) * t * d * frac) // 60}"
}