// Numbas version: finer_feedback_settings {"name": "Multiplying fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["denom1", "num1", "denom2", "num2", "num3", "denom3", "num1simp", "denom1simp", "num2simp", "denom2simp", "prompts", "prompt"], "name": "Multiplying fractions", "tags": [], "preamble": {"css": ".fractiontable table {\n width: 10%; \n padding: 0px; \n border-width: 0px; \n layout: fixed;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n width: 15%; \n border-bottom: 1px solid black; \n text-align: center;\n}\n\n.fractiontable .tdeq \n{\n width: 5%; \n border-bottom: 0px;\n font-size: x-large;\n /* vertical-align: text-bottom;*/\n}\n\n\n.fractiontable th {\n background-color:#aaa;\n}\n/*Fix the height of all cells EXCEPT table-headers to 40px*/\n.fractiontable td {\n height:40px;\n}\n", "js": ""}, "advice": "

See step.

", "rulesets": {"std": ["all"]}, "parts": [{"stepsPenalty": 0, "prompt": "

We want to find:

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n
{num1simp}×{num2simp}
{denom1simp}{denom2simp}
\n
\n

The product of 2 fractions is:

\n

the product of the numerators over the product of the denominators. 

\n

$\\var{prompt} $

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
{num1simp}×{num2simp}=[[0]]
{denom1simp}{denom2simp}[[1]]
\n
\n
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "num3", "minValue": "num3", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "denom3", "minValue": "denom3", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

The top (or numerator) of the product = {num1simp} × {num2simp} = ?

\n

The bottom (or denominator) of the product = {denom1simp} × {denom2simp} = ?

\n

Remember to cancel the result if you can.

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

Try this without a calculator.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"denom1": {"definition": "random(2..5)\n", "templateType": "anything", "group": "Ungrouped variables", "name": "denom1", "description": ""}, "denom3": {"definition": "(denom1simp*denom2simp)/gcd(num1simp*num2simp, denom1simp*denom2simp)", "templateType": "anything", "group": "Ungrouped variables", "name": "denom3", "description": ""}, "denom2": {"definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "denom2", "description": ""}, "prompt": {"definition": "switch(gcd(num1simp*num2simp, denom1simp*denom2simp) >1, prompts[0], prompts[1])", "templateType": "anything", "group": "Ungrouped variables", "name": "prompt", "description": ""}, "num1": {"definition": "denom1-random(1..denom1-1) //make sure the numerator's bigger than denom\n", "templateType": "anything", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num2": {"definition": "denom2-random(1..denom2-1) //make sure the numerator's bigger than denom", "templateType": "anything", "group": "Ungrouped variables", "name": "num2", "description": ""}, "num3": {"definition": "(num1simp*num2simp)/gcd(num1simp*num2simp, denom1simp*denom2simp)", "templateType": "anything", "group": "Ungrouped variables", "name": "num3", "description": ""}, "num1simp": {"definition": "num1/gcd(num1, denom1)", "templateType": "anything", "group": "Ungrouped variables", "name": "num1simp", "description": ""}, "prompts": {"definition": "[ \"Make sure you show the result in its simplest form: you\\'ll have to cancel ...\", \" \" ]", "templateType": "list of strings", "group": "Ungrouped variables", "name": "prompts", "description": ""}, "denom1simp": {"definition": "denom1/gcd(num1,denom1)", "templateType": "anything", "group": "Ungrouped variables", "name": "denom1simp", "description": ""}, "denom2simp": {"definition": "denom2/gcd(num2,denom2)", "templateType": "anything", "group": "Ungrouped variables", "name": "denom2simp", "description": ""}, "num2simp": {"definition": "num2/gcd(num2, denom2)", "templateType": "anything", "group": "Ungrouped variables", "name": "num2simp", "description": ""}}, "metadata": {"description": "

Practice of multiplying fractions (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/"}]}