// Numbas version: exam_results_page_options {"name": "Merryn's copy of Fraction of a pizza remaining (4)", "extensions": ["written-number"], "custom_part_types": [], "resources": [["question-resources/pizza1.png", "/srv/numbas/media/question-resources/pizza1.png"], ["question-resources/pizza2.png", "/srv/numbas/media/question-resources/pizza2.png"], ["question-resources/pizza3.png", "/srv/numbas/media/question-resources/pizza3.png"], ["question-resources/pizza4.png", "/srv/numbas/media/question-resources/pizza4.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Merryn's copy of Fraction of a pizza remaining (4)", "tags": ["LANTITE"], "metadata": {"description": "

NC NA Non-calculator and Number and Algebra strand. This number assesses students' ability to add and subtract very simple fractions. Students need two add two fractions (possibly mixed numbers) involving quarters and/or halves, then subtract their answer from a whole number. The answer must be entered in simplest form and will always be less than one.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Do not use a calculator for this question.

\n

A parent bought their two children {written_number(number)} mini-pizzas at the school fair. The older child {frac1} and the younger child {frac2}.

", "advice": "

{advice}

\n

The diagrams below show the whole mini-pizzas, the amount eaten and the amount left.

\n

{image('resources/question-resources/'+image,30)}

", "rulesets": {}, "extensions": ["written-number"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"scenarios": {"name": "scenarios", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n{\\n\\\"num\\\":2,\\n\\\"f1\\\":\\\"ate three quarters of a mini-pizza\\\",\\n\\\"f2\\\":\\\"ate half a mini-pizza\\\",\\n\\\"ans\\\":\\\"3/4\\\",\\n\\\"img\\\":\\\"pizza4.png\\\",\\n\\\"adv\\\":\\\"First we need to add $\\\\\\\\frac{3}{4}$ and $\\\\\\\\frac{1}{2}$.
We know that $\\\\\\\\frac{1}{2}+\\\\\\\\frac{1}{2}=1$ so $\\\\\\\\frac{3}{4}+\\\\\\\\frac{1}{2}$ will be $\\\\\\\\frac{1}{4}$ more than that.
$\\\\\\\\frac{3}{4}+\\\\\\\\frac{1}{2}=1\\\\\\\\frac{1}{4}$.
So the two children together ate $1\\\\\\\\frac{1}{4}$ mini-pizzas out of the two mini-pizzas that they started with.
This means that $\\\\\\\\frac{3}{4}$ of a mini-pizza remained.\\\"\\n},\\n{\\n\\\"num\\\":2,\\n\\\"f1\\\":\\\"ate three quarters of a mini-pizza\\\",\\n\\\"f2\\\":\\\"also ate three quarters of a mini-pizza\\\",\\n\\\"ans\\\":\\\"1/2\\\",\\n\\\"img\\\":\\\"pizza2.png\\\",\\n\\\"adv\\\":\\\"First we need to add $\\\\\\\\frac{3}{4}$ and $\\\\\\\\frac{3}{4}$.
We know that $\\\\\\\\frac{1}{2}+\\\\\\\\frac{1}{2}=1$ so $\\\\\\\\frac{3}{4}+\\\\\\\\frac{3}{4}$ will be $\\\\\\\\frac{1}{2}$ more than that (adding the extra quarters).
$\\\\\\\\frac{3}{4}+\\\\\\\\frac{3}{4}=1\\\\\\\\frac{1}{2}$.
So the two children together ate $1\\\\\\\\frac{1}{2}$ mini-pizzas out of the two mini-pizzas that they started with.
This means that $\\\\\\\\frac{1}{2}$ of a mini-pizza remained.\\\"\\n},\\n{\\n\\\"num\\\":3,\\n\\\"f1\\\":\\\"ate one and a half mini-pizzas\\\",\\n\\\"f2\\\":\\\"ate one and a quarter mini-pizzas\\\",\\n\\\"ans\\\":\\\"1/4\\\",\\n\\\"img\\\":\\\"pizza3.png\\\",\\n\\\"adv\\\":\\\"First we need to add $1\\\\\\\\frac{1}{2}$ and $1\\\\\\\\frac{1}{4}$.
We know that $\\\\\\\\frac{1}{2}+\\\\\\\\frac{1}{4}=\\\\\\\\frac{3}{4}$ so $1\\\\\\\\frac{1}{2}+1\\\\\\\\frac{1}{4}$ will be $2\\\\\\\\frac{3}{4}$.
So the two children together ate $2\\\\\\\\frac{3}{4}$ mini-pizzas out of the three mini-pizzas that they started with.
This means that $\\\\\\\\frac{1}{4}$ of a mini-pizza remained.\\\"\\n},\\n{\\n\\\"num\\\":3,\\n\\\"f1\\\":\\\"ate one and three quarters of the mini-pizzas\\\",\\n\\\"f2\\\":\\\"ate three quarters of a mini-pizza\\\",\\n\\\"ans\\\":\\\"1/2\\\",\\n\\\"img\\\":\\\"pizza1.png\\\",\\n\\\"adv\\\":\\\"First we need to add $1\\\\\\\\frac{3}{4}$ and $\\\\\\\\frac{3}{4}$.
We know that $\\\\\\\\frac{1}{2}+\\\\\\\\frac{1}{2}=1$ so $\\\\\\\\frac{3}{4}+\\\\\\\\frac{3}{4}$ will be $\\\\\\\\frac{1}{2}$ more than that (adding the extra quarters).
$\\\\\\\\frac{3}{4}+\\\\\\\\frac{3}{4}=1\\\\\\\\frac{1}{2}$.
Therefore $1\\\\\\\\frac{3}{4}+\\\\\\\\frac{3}{4}$ will be $2\\\\\\\\frac{1}{2}$.
So the two children together ate $2\\\\\\\\frac{1}{2}$ mini-pizzas out of the three mini-pizzas that they started with.
This means that $\\\\\\\\frac{1}{2}$ of a mini-pizza remained.\\\"\\n}\\n]\"))", "description": "

The list of all pizza scenarios, each with the number of pizzas, fraction each child ate, answer and advice (worked solution).

", "templateType": "json", "can_override": false}, "scenario": {"name": "scenario", "group": "Ungrouped variables", "definition": "random(scenarios)", "description": "

The randomly selected pizza scenario, with the number of pizzas, fraction each child ate, answer and advice (worked solution).

", "templateType": "anything", "can_override": false}, "number": {"name": "number", "group": "Ungrouped variables", "definition": "scenario[\"num\"]", "description": "

The number of pizzas that the parent bought.

", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "scenario[\"ans\"]", "description": "

The correct answer - the fraction of pizza remaining.

", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "scenario[\"adv\"]", "description": "

The advice (worked solution) for the randomly selected question.

", "templateType": "anything", "can_override": false}, "frac1": {"name": "frac1", "group": "Ungrouped variables", "definition": "scenario[\"f1\"]", "description": "

The fraction of a pizza (or pizzas) that the older child ate.

", "templateType": "anything", "can_override": false}, "frac2": {"name": "frac2", "group": "Ungrouped variables", "definition": "scenario[\"f2\"]", "description": "

The fraction of a pizza (or pizzas) that the younger child ate.

", "templateType": "anything", "can_override": false}, "image": {"name": "image", "group": "Ungrouped variables", "definition": "scenario[\"img\"]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["scenarios", "scenario", "number", "frac1", "frac2", "answer", "advice", "image"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What fraction of a pizza remained altogether? Enter your answer in simplest form using the / key.

", "answer": "{answer}", "displayAnswer": "{answer}", "matchMode": "regex"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}