// Numbas version: exam_results_page_options {"name": "Simplifying Fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "advice": "

See step.

", "ungrouped_variables": ["multiple", "simpdenom", "simpnum", "denominator", "numerator", "ansstring", "n1", "n2"], "metadata": {"description": "

Cancelling to reduce a fraction to its lowest terms.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Simplify this fraction to its lowest terms.

", "extensions": [], "name": "Simplifying Fractions", "tags": [], "parts": [{"marks": 0, "sortAnswers": false, "prompt": "

What's  $\\frac {\\var{Numerator}} {\\var{Denominator} }$ in its simplest form (please enter your answer in the form a/b)? Answer: [[0]];

", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "gaps": [{"matchMode": "regex", "answer": "", "marks": 1, "displayAnswer": "", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "patternmatch", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "variableReplacements": []}], "unitTests": [], "variableReplacementStrategy": "originalfirst", "steps": [{"unitTests": [], "variableReplacementStrategy": "originalfirst", "marks": 0, "scripts": {}, "type": "information", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "prompt": "

You need to find a number that divides exactly into $\\var{Numerator}$ and $\\var{Denominator}$ (a \"common factor\").

\n

When you've found one, you can simplify the fraction $\\frac {\\var{Numerator}} {\\var{Denominator}}$ by dividing $\\var{Numerator}$ and $\\var{Denominator}$ by the common factor.

\n

Carry on until there aren't any more common factors..

", "showFeedbackIcon": true, "variableReplacements": []}], "scripts": {}, "type": "gapfill", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "stepsPenalty": 0, "variableReplacements": []}], "functions": {}, "rulesets": {"std": ["all", "fractionNumbers"]}, "variables": {"simpnum": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "simpnum", "definition": "Numerator/gcd(Numerator,Denominator)"}, "ansstring": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "ansstring", "definition": "SimpNum + \"/\" + simpDenom"}, "multiple": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "multiple", "definition": "random(2,3,4,5,7,8,9,15,20,25) //Restrict possible multiples"}, "denominator": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "denominator", "definition": "n1*Multiple //denom = n1*Multiple, num = EITHER n1 (if n2 > Multiple) OR n1 * n2"}, "n1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "n1", "definition": "random(2..9)"}, "n2": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "n2", "definition": "random(1..9)"}, "numerator": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "numerator", "definition": "if(n2 < Multiple,n1*n2,n1) //we want the Numerator to be less than the denominator"}, "simpdenom": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "simpdenom", "definition": "Denominator/gcd(Numerator,Denominator)"}}, "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Rob Cade", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/70/"}, {"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}]}]}], "contributors": [{"name": "Rob Cade", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/70/"}, {"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}]}