// Numbas version: finer_feedback_settings {"name": "NC NA Fraction multiplication - a proportion of a partially eaten chocolate bar (9)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NC NA Fraction multiplication - a proportion of a partially eaten chocolate bar (9)", "tags": ["LANTITE"], "metadata": {"description": "

Used for LANTITE preparation (Australia). NC = Non Calculator strand. NA = Number & Algebra strand. Students are asked to find a fraction of a fraction. There are 9 different versions of this question.

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

On Monday, {name1} bought a chocolate bar and ate one {frac1name} of it. 

\n

On Tuesday, {name1} ate one {frac2name} of the remaining part of the chocolate bar.

", "advice": "
\n
\n
\n

On Monday, {name1} bought a chocolate bar and ate one {frac1name} of it.

\n

We need to subtract this fraction from one whole to find the fraction remaining.

\n

1 - $ \\frac{1}{\\var{frac1denom}} $ = $ \\frac {\\var{monleftfracnum}} {\\var{monleftfracden}} $

\n

On Tuesday, {name1} ate one {frac2name} of the fraction remaining.

\n

We need to find one {frac2name} of $ \\frac {\\var{monleftfracnum}} {\\var{monleftfracden}} $.

\n

$ \\frac{1}{\\var{frac2denom}} $ x $ \\frac {\\var{monleftfracnum}} {\\var{monleftfracden}} $ = $ \\frac {\\var{monleftfracnum}} {\\var{frac2denom*monleftfracden}} $

\n

\n
\n

This fraction cannot be simplified.

\n

So {name1} ate $ \\frac {\\var{monleftfracnum}} {\\var{frac2denom*monleftfracden}} $ of the chocolate bar on Tuesday.

\n
\n

\n
\n

This fraction needs to be simplified. Divide both numerator and denominator by {gcd(monleftfracnum,frac2denom*monleftfracden)}.

\n

$ \\frac {\\var{monleftfracnum}} {\\var{frac2denom*monleftfracden}} $ = $ \\frac {\\var{answernumerator}} {\\var{answerdenominator}}$

\n

So {name1} ate $ \\frac {\\var{answernumerator}} {\\var{answerdenominator}}$ of the chocolate bar on Tuesday.

\n
\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"frac1name": {"name": "frac1name", "group": "Ungrouped variables", "definition": "frac1[\"name\"]", "description": "
\n
\n

The randomly selected Monday fraction -  in word form.

", "templateType": "anything", "can_override": false}, "fractioneaten": {"name": "fractioneaten", "group": "Ungrouped variables", "definition": "rational_approximation(decimaleaten)", "description": "
\n
\n

The proportion of the chocolate bar eaten on Tuesday. It is the answer as a fraction.

", "templateType": "anything", "can_override": false}, "answernumerator": {"name": "answernumerator", "group": "Ungrouped variables", "definition": "fractioneaten[0]", "description": "
\n
\n

The numerator of the proportion of the chocolate bar eaten on Tuesday (fraction not yet simplified)

", "templateType": "anything", "can_override": false}, "decimaleaten": {"name": "decimaleaten", "group": "Ungrouped variables", "definition": "(1-(1/frac1denom))*(1/frac2denom)", "description": "
\n
\n

The proportion of the chocolate bar eaten on Tuesday. It is the answer as a decimal.

", "templateType": "anything", "can_override": false}, "frac2": {"name": "frac2", "group": "Ungrouped variables", "definition": "random(frac2options)", "description": "
\n
\n

The randomly selected Tuesday fraction -  in both word and numerical form.

", "templateType": "anything", "can_override": false}, "monleftfrac": {"name": "monleftfrac", "group": "Ungrouped variables", "definition": "rational_approximation(monleft)", "description": "
\n

The proportion of the chocolate bar remaining on Monday, as a fraction. 

", "templateType": "anything", "can_override": false}, "name1": {"name": "name1", "group": "Ungrouped variables", "definition": "random(\"Tyler\",\"Emma\",\"Lachlan\",\"Bella\",\"Mario\",\"Jia\")", "description": "
\n
\n
\n
\n

A randomly selected name from the list.

", "templateType": "anything", "can_override": false}, "frac1denom": {"name": "frac1denom", "group": "Ungrouped variables", "definition": "frac1[\"denom\"]", "description": "
\n
\n

The denominator of the randomly selected Monday fraction.

", "templateType": "anything", "can_override": false}, "monleftfracden": {"name": "monleftfracden", "group": "Ungrouped variables", "definition": "monleftfrac[1]", "description": "
\n

The denominator of the proportion of the chocolate bar remaining on Monday.

", "templateType": "anything", "can_override": false}, "frac2denom": {"name": "frac2denom", "group": "Ungrouped variables", "definition": "frac2[\"denom\"]", "description": "
\n

The denominator of the randomly selected Tuesday fraction.

", "templateType": "anything", "can_override": false}, "frac2options": {"name": "frac2options", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\\"name\\\":\\\"half\\\",\\n \\\"denom\\\":2\\n },\\n {\\\"name\\\":\\\"third\\\",\\n \\\"denom\\\":3\\n },\\n {\\\"name\\\":\\\"quarter\\\",\\n \\\"denom\\\":4\\n }\\n]\"))", "description": "
\n

The denominator of the Tuesday fraction in both word and numerical form. List of three possible scenarios.

", "templateType": "json", "can_override": false}, "frac2name": {"name": "frac2name", "group": "Ungrouped variables", "definition": "frac2[\"name\"]", "description": "
\n

The randomly selected Tuesday fraction -  in word form.

", "templateType": "anything", "can_override": false}, "monleft": {"name": "monleft", "group": "Ungrouped variables", "definition": "(1-1/frac1denom)", "description": "
\n

The proportion of the chocolate bar remaining on Monday, as a decimal. 

", "templateType": "anything", "can_override": false}, "frac1options": {"name": "frac1options", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\n \\\"name\\\": \\\"half\\\",\\n \\\"denom\\\": 2\\n },\\n {\\n \\\"name\\\": \\\"third\\\",\\n \\\"denom\\\": 3\\n },\\n {\\n \\\"name\\\": \\\"quarter\\\",\\n \\\"denom\\\": 4\\n }\\n]\"))", "description": "
\n
\n
\n
\n

The denominator of the Monday fraction in both word and numerical form. List of three possible scenarios.

", "templateType": "json", "can_override": false}, "answerdenominator": {"name": "answerdenominator", "group": "Ungrouped variables", "definition": "fractioneaten[1]", "description": "
\n

The denominator of the proportion of the chocolate bar eaten on Tuesday (fraction not yet simplified)

", "templateType": "anything", "can_override": false}, "frac1": {"name": "frac1", "group": "Ungrouped variables", "definition": "random(frac1options)", "description": "
\n
\n
\n

The randomly selected Monday fraction -  in both word and numerical form.

", "templateType": "anything", "can_override": false}, "monleftfracnum": {"name": "monleftfracnum", "group": "Ungrouped variables", "definition": "monleftfrac[0]", "description": "
\n

The numerator of the proportion of the chocolate bar remaining on Monday.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["name1", "frac1options", "frac1", "frac1name", "frac1denom", "frac2options", "frac2", "frac2name", "frac2denom", "decimaleaten", "fractioneaten", "answernumerator", "answerdenominator", "monleft", "monleftfrac", "monleftfracnum", "monleftfracden"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "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 the whole bar did {name1} eat on Tuesday?

\n

Use the  /  key to enter your anwer as a fraction in simplest form.

", "minValue": "decimaleaten", "maxValue": "decimaleaten", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": 0, "showFractionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}