// Numbas version: exam_results_page_options {"name": "Convert Currency - vary currencies", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "functions": {}, "tags": [], "variables": {"numberone": {"name": "numberone", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(600..800)"}, "ans2": {"name": "ans2", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "({numbertwo)*{exchange}"}, "rounded1": {"name": "rounded1", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "precround(ans1,2)"}, "currencyA": {"name": "currencyA", "templateType": "anything", "description": "

list of currencies

", "group": "Ungrouped variables", "definition": "['Euro','Swedish Krona','GBP']"}, "currencyb": {"name": "currencyb", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "['USD', 'Japanese Yen', 'Australian Dollars']"}, "numbertwo": {"name": "numbertwo", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(300..600 except {numberone})"}, "exchange_list": {"name": "exchange_list", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "[random(1.18..1.34 #0.02), random(12.2..15.1#0.5),random(1.65..1.85#0.02)]"}, "chosen_currencyb": {"name": "chosen_currencyb", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "currencyb[index]"}, "ans1": {"name": "ans1", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "({numberone}/{exchange})"}, "rounded2": {"name": "rounded2", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "precround(ans2,2)"}, "exchange": {"name": "exchange", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "exchange_list[index]"}, "chosen_currencya": {"name": "chosen_currencya", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "currencya[index]"}, "index": {"name": "index", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(0,1,2)"}}, "ungrouped_variables": ["numberone", "numbertwo", "ans1", "ans2", "exchange_list", "currencyA", "chosen_currencya", "index", "currencyb", "chosen_currencyb", "exchange", "rounded1", "rounded2"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Currency Conversion

\n

rebelmaths

"}, "variable_groups": [], "extensions": [], "advice": "

To calculate how many $\\var{chosen_currencyA}$ you will get for  $\\var{numberone}$  $\\var{chosen_currencyB}$ :

\n

$\\frac{\\var{numberone}}{\\var{exchange}}  = \\var{rounded1}$ $\\var{chosen_currencyA}$

\n

To calculate how many $\\var{chosen_currencyB}$ you get for $\\var{numbertwo}$ $\\var{chosen_currencyA}$

\n

$\\var{numbertwo}$ *$ \\var{exchange}$  = $\\var{rounded2}$ $\\var{chosen_currencyA}$

", "parts": [{"variableReplacementStrategy": "originalfirst", "gaps": [{"variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "mustBeReducedPC": 0, "minValue": "{ans1}", "precision": "2", "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "showFeedbackIcon": true, "maxValue": "{ans1}", "marks": 1, "strictPrecision": false, "correctAnswerStyle": "plain", "precisionType": "dp", "variableReplacements": [], "correctAnswerFraction": false, "allowFractions": false, "precisionPartialCredit": 0, "scripts": {}, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "showPrecisionHint": false}], "prompt": "

How many $\\var{chosen_currencyA}$ will I get for $\\var{numberone}$ $\\var{chosen_currencyB}$?

\n

[[0]]

", "variableReplacements": [], "type": "gapfill", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "marks": 0}, {"variableReplacementStrategy": "originalfirst", "gaps": [{"variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "mustBeReducedPC": 0, "minValue": "{ans2}", "precision": "2", "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "showFeedbackIcon": true, "maxValue": "{ans2}", "marks": 1, "strictPrecision": false, "correctAnswerStyle": "plain", "precisionType": "dp", "variableReplacements": [], "correctAnswerFraction": false, "allowFractions": false, "precisionPartialCredit": 0, "scripts": {}, "precisionMessage": "You have not given your answer to the correct precision.", "showCorrectAnswer": true, "showPrecisionHint": false}], "prompt": "

How many $\\var{chosen_currencyB}$ will I get for $\\var{numbertwo}$ $\\var{chosen_currencyA}$?

\n

[[0]]

", "variableReplacements": [], "type": "gapfill", "showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "marks": 0}], "statement": "

If the exchange rate between $\\var{chosen_currencyA}$ and $\\var{chosen_currencyB}$ is:

\n

1 $\\var{chosen_currencyA}$ = $\\var{exchange}$ $\\var{chosen_currencyB}$ 

\n

(Round to the nearest cent)

", "preamble": {"js": "", "css": ""}, "name": "Convert Currency - vary currencies", "type": "question", "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}, {"name": "David Goulding", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2365/"}]}]}], "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}, {"name": "David Goulding", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2365/"}]}