// Numbas version: exam_results_page_options {"name": "Compound units : shopping for bananas", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "
This question assesses the student's ability to use some given information involving two different units of measurement to rewrite the information as a compound measure.
", "licence": "Creative Commons Attribution 4.0 International"}, "rulesets": {}, "type": "question", "ungrouped_variables": ["person", "a", "b", "b_pack", "b_single", "mark_matrix"], "extensions": ["random_person"], "advice": "The pack price at Fine Fare supermarket is {b_pack}, which converted to pence is {b}p.
\nThe price per banana at Fine Fare supermarket is
\n\\[ \\var{b} \\div 5 = \\var{b_single}\\text{p.}\\]
\nAs the price at Hintons supermarket is cheaper, {person['pronouns']['they']} should shop there.
\nThe new price per banana at Fine Fare Supermarket is
\n\\begin{align}
\\var{b} \\div 6 &= \\var{if(isint(b/6),b/6,dpformat(b/6,1))}\\text{p.} \\\\
\\end{align}
Since the price at Hintons Supermarket is still cheaper, {person['name']} should not change {person['pronouns']['their']} decision.
\nSince the price at Fine Fare Supermarket is now cheaper, {person['name']} should change {person['pronouns']['their']} decision.
\n", "variable_groups": [], "statement": "{person['name']} is shopping for bananas and has two local supermarkets:
\nHintons Supermarket charges {a}p per banana.
\nFine Fare Supermarket charges {b_pack} for a pack of 5 bananas.
", "name": "Compound units : shopping for bananas", "parts": [{"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showCorrectAnswer": true, "prompt": "What is the price per banana (in pence) at Fine Fare Supermarket?
\n[[0]]p/banana
", "variableReplacements": [], "showFeedbackIcon": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "showFeedbackIcon": true, "marks": 1, "minValue": "b_single", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "b_single", "mustBeReduced": false, "allowFractions": false, "variableReplacements": [], "correctAnswerStyle": "plain", "showCorrectAnswer": true}]}, {"shuffleChoices": false, "minMarks": 0, "showCorrectAnswer": true, "displayColumns": 0, "variableReplacements": [], "showFeedbackIcon": true, "prompt": "If {person['name']} is interested in getting the best value for money per banana, which supermarket should {person['pronouns']['they']} shop at?
", "choices": ["Hintons Supermarket
", "Fine Fare Supermarket
"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "maxMarks": 0, "marks": 0, "distractors": ["", ""], "matrix": ["1", 0], "displayType": "radiogroup"}, {"shuffleChoices": false, "minMarks": 0, "showCorrectAnswer": true, "displayColumns": 0, "showFeedbackIcon": true, "prompt": "{person['name']} notices that some of the bags of bananas at Fine Fare Supermarket contain 6 bananas and wonders if that will make a difference to {person['pronouns']['their']} decision. Assuming that {person['pronouns']['they']} can get hold of a pack of 6 bananas at Fine Fare, which supermarket should {person['pronouns']['they']} now shop at?
", "choices": ["Hintons Supermarket
", "Fine Fare Supermarket
"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "maxMarks": 0, "marks": 0, "variableReplacements": [], "matrix": "mark_matrix", "displayType": "radiogroup"}], "tags": ["compound measures", "Compound measures", "Compound units of measurement", "price", "rate of pay", "taxonomy"], "preamble": {"css": "", "js": ""}, "functions": {}, "variables": {"b_pack": {"description": "formatted price of the pack
", "group": "Ungrouped variables", "definition": "currency(b/100,\"\u00a3\",\"p\")", "name": "b_pack", "templateType": "anything"}, "b_single": {"description": "Single banana price at fine fare
", "group": "Ungrouped variables", "definition": "b/5", "name": "b_single", "templateType": "anything"}, "a": {"description": "cost per banana in Hintons
", "group": "Ungrouped variables", "definition": "random(12..19)", "name": "a", "templateType": "anything"}, "b": {"description": "Price of pack of bananas at Fine Fare
", "group": "Ungrouped variables", "definition": "a*5+random(5..20#5 except a)", "name": "b", "templateType": "anything"}, "person": {"description": "", "group": "Ungrouped variables", "definition": "random_person()", "name": "person", "templateType": "anything"}, "mark_matrix": {"description": "", "group": "Ungrouped variables", "definition": "if(b/6>a,[1,0],[0,1])", "name": "mark_matrix", "templateType": "anything"}}, "variablesTest": {"maxRuns": 100, "condition": ""}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}]}