// Numbas version: finer_feedback_settings {"name": "Fractions to percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["perc", "num1", "num2", "simplenum", "num", "simpledenom", "factor", "denom"], "name": "Fractions to percentages", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

See step for part a.

", "rulesets": {}, "parts": [{"stepsPenalty": 0, "prompt": "

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

\n

 

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{simplenum}/{simpledenom}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "steps": [{"prompt": "

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

\n

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

\n

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"prompt": "

So what's $\\frac {\\var{num}} {\\var{denom} }$ as a percentage?  Answer: [[0]]%

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{perc}", "minValue": "{perc}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

You shouldn't need a calculator for these...

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"perc": {"definition": "simplenum*100/simpledenom", "templateType": "anything", "group": "Ungrouped variables", "name": "perc", "description": ""}, "num1": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num2": {"definition": "random(1..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "num2", "description": ""}, "simplenum": {"definition": "num/gcd(num,denom)", "templateType": "anything", "group": "Ungrouped variables", "name": "simplenum", "description": ""}, "num": {"definition": "if(num2Converting a fraction to a percentage by cancelling (without a calculator).

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Rob Cade", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/70/"}]}]}], "contributors": [{"name": "Rob Cade", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/70/"}]}