// Numbas version: exam_results_page_options {"name": "NA4 - Convert Currency", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NA4 - Convert Currency", "tags": [], "metadata": {"description": "

Exchange rates.

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

On a particular day, 1 Pound Sterling (£) is equivalent to {exchanget} United States Dollars (\\$). If you have \\$ {amount}, what does this equate to in Pound Sterling? 

", "advice": "

To convert Dollars (\\$) into Pounds (£) you will need to caculate:

\n

\\begin{align}
\\frac{\\var{amount}}{\\var{exchange}} &= \\var{answer}\\\\
&= \\var{answert},
\\end{align}

\n

ensuring to round off to the nearest penny.

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"exchange": {"name": "exchange", "group": "Ungrouped variables", "definition": "random(0.9 .. 1.2#0.01)", "description": "

Pound to dollar exchange rate.

", "templateType": "randrange", "can_override": false}, "amount": {"name": "amount", "group": "Ungrouped variables", "definition": "random(100 .. 1000#5)", "description": "

Amount of dollars.

", "templateType": "randrange", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "amount/exchange", "description": "", "templateType": "anything", "can_override": false}, "answert": {"name": "answert", "group": "Ungrouped variables", "definition": "currency(answer,\"\u00a3\",\"p\")", "description": "", "templateType": "anything", "can_override": false}, "exchanget": {"name": "exchanget", "group": "Ungrouped variables", "definition": "dpformat(exchange,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["exchange", "amount", "answer", "answert", "exchanget"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

[[0]]

", "gaps": [{"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, "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "answert", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}]}], "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}