// Numbas version: exam_results_page_options {"name": "David's copy of 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": [{"parts": [{"scripts": {}, "prompt": "

What is the price per banana (in pence) at Fine Fare Supermarket?

\n

[[0]]p/banana

", "showFeedbackIcon": true, "gaps": [{"mustBeReduced": false, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "minValue": "b_single", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "b_single", "mustBeReducedPC": 0, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "correctAnswerFraction": false, "marks": 1, "variableReplacements": [], "allowFractions": false}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}, {"maxMarks": 0, "showFeedbackIcon": true, "type": "1_n_2", "variableReplacementStrategy": "originalfirst", "distractors": ["", ""], "scripts": {}, "displayColumns": 0, "prompt": "

If {person['name']} is interested in getting the best value for money per banana, which supermarket should {person['pronouns']['they']} shop at?

", "displayType": "radiogroup", "shuffleChoices": false, "minMarks": 0, "choices": ["

Hintons Supermarket

", "

Fine Fare Supermarket

"], "showCorrectAnswer": true, "marks": 0, "variableReplacements": [], "matrix": ["1", 0]}, {"maxMarks": 0, "showFeedbackIcon": true, "type": "1_n_2", "variableReplacementStrategy": "originalfirst", "displayColumns": 0, "scripts": {}, "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?

", "displayType": "radiogroup", "shuffleChoices": false, "minMarks": 0, "choices": ["

Hintons Supermarket

", "

Fine Fare Supermarket

"], "showCorrectAnswer": true, "marks": 0, "variableReplacements": [], "matrix": "mark_matrix"}], "tags": ["compound measures", "Compound measures", "Compound units of measurement", "price", "rate of pay", "taxonomy"], "advice": "

a)

\n

The pack price at Fine Fare supermarket is {b_pack}, which converted to pence is {b}p.

\n

The price per banana at Fine Fare supermarket is

\n

\\[ \\var{b} \\div 5 = \\var{b_single}\\text{p.}\\]

\n

b)

\n

As the price at Hintons supermarket is cheaper, {person['pronouns']['they']} should shop there.

\n

c)

\n

The 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}

\n

Since the price at Hintons Supermarket is still cheaper, {person['name']} should not change {person['pronouns']['their']} decision.

\n

Since the price at Fine Fare Supermarket is now cheaper, {person['name']} should change {person['pronouns']['their']} decision.

\n

", "statement": "

{person['name']} is shopping for bananas and has two local supermarkets:

\n

Hintons Supermarket charges {a}p per banana.

\n

Fine Fare Supermarket charges {b_pack} for a pack of 5 bananas.

", "variables": {"person": {"templateType": "anything", "definition": "random_person()", "name": "person", "group": "Ungrouped variables", "description": ""}, "b_single": {"templateType": "anything", "definition": "b/5", "name": "b_single", "group": "Ungrouped variables", "description": "

Single banana price at fine fare

"}, "a": {"templateType": "anything", "definition": "random(12..19)", "name": "a", "group": "Ungrouped variables", "description": "

cost per banana in Hintons

"}, "mark_matrix": {"templateType": "anything", "definition": "if(b/6>a,[1,0],[0,1])", "name": "mark_matrix", "group": "Ungrouped variables", "description": ""}, "b": {"templateType": "anything", "definition": "a*5+random(5..20#5 except a)", "name": "b", "group": "Ungrouped variables", "description": "

Price of pack of bananas at Fine Fare

"}, "b_pack": {"templateType": "anything", "definition": "currency(b/100,\"\u00a3\",\"p\")", "name": "b_pack", "group": "Ungrouped variables", "description": "

formatted price of the pack

"}}, "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["person", "a", "b", "b_pack", "b_single", "mark_matrix"], "extensions": ["random_person"], "variable_groups": [], "rulesets": {}, "name": "David's copy of Compound units : shopping for bananas", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "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.

"}, "preamble": {"css": "", "js": ""}, "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "David Rickard", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/451/"}, {"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": "David Rickard", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/451/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}]}