// Numbas version: finer_feedback_settings {"name": "Students & spellings", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

Based on a generic QTS example.  Practice of cancelling *before* the final calculaltion.

\n

", "licence": "Creative Commons Attribution 4.0 International"}, "variables": {"factorsOf100": {"name": "factorsOf100", "group": "Ungrouped variables", "description": "", "templateType": "list of numbers", "definition": "[ 1, 2, 4, 5, 10, 20, 25, 50 ]"}, "nums": {"name": "nums", "group": "Ungrouped variables", "description": "", "templateType": "anything", "definition": "sort([factor1*random(2,5),factor2*random(2,3),factor3*random(3,5,7)])"}, "factor3": {"name": "factor3", "group": "Ungrouped variables", "description": "", "templateType": "anything", "definition": "if(isint(100/(factor1*factor2)),100/(factor1*factor2),1)"}, "factor1": {"name": "factor1", "group": "Ungrouped variables", "description": "", "templateType": "anything", "definition": "random(factorsOf100)"}, "factor2": {"name": "factor2", "group": "Ungrouped variables", "description": "", "templateType": "anything", "definition": "random(factorsOf100 except factor1)"}, "ans": {"name": "ans", "group": "Ungrouped variables", "description": "", "templateType": "anything", "definition": "nums[0]*nums[1]*nums[2]/100"}}, "tags": [], "preamble": {"css": "", "js": ""}, "extensions": [], "variable_groups": [], "ungrouped_variables": ["factor1", "factor2", "factor3", "nums", "ans", "factorsOf100"], "parts": [{"type": "gapfill", "gaps": [{"correctAnswerStyle": "plain", "showPrecisionHint": false, "minValue": "ans", "precisionPartialCredit": "50", "scripts": {}, "showFeedbackIcon": true, "maxValue": "ans", "precisionType": "dp", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "precision": "2", "showCorrectAnswer": true, "marks": "2", "mustBeReducedPC": 0, "allowFractions": false, "variableReplacements": [], "precisionMessage": "

You have not given your answer to 2 decimal places.

", "strictPrecision": true, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "mustBeReduced": false}], "stepsPenalty": 0, "steps": [{"type": "information", "showCorrectAnswer": true, "scripts": {}, "prompt": "

$\\var{nums[2]} \\times \\var{nums[1]} \\times \\var{nums[0]}$ will give the answer in pence, but you want the answer in pounds, so you'll have to divide $\\var{nums[2]} \\times \\var{nums[1]} \\times \\var{nums[0]}$ by 100.

\n

Instead of working out the first number and THEN dividing by 100, see if you can cancel anywhere in the expression $\\frac {\\var{nums[2]} \\times \\var{nums[1]} \\times \\var{nums[0]}} {100}$

\n

When you've done all the cancelling you can, THEN do the working out...

\n

Don't forget to show your answer with 2 decimal places, even if it's a whole number.

\n

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

If $\\var{nums[2]}$  students do $\\var{nums[1]}$ spellings each, and they get $\\var{nums[0]}$p for each spelling, what's the total amount raised by the students? 

\n

(Please give your answer in pounds TO 2 DECIMAL PLACES.)

\n

Answer: total raised = [[0]]

", "marks": 0, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}], "name": "Students & spellings", "advice": "

See step.

", "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

Using cancelling to solve a typical QTS question more quickly.

", "functions": {}, "rulesets": {}, "type": "question", "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/"}]}