// 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": [{"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}$

", "name": "Convert Currency - vary currencies", "tags": [], "variable_groups": [], "functions": {}, "parts": [{"showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "gapfill", "scripts": {}, "prompt": "

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

\n

[[0]]

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

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

\n

[[0]]

", "gaps": [{"variableReplacementStrategy": "originalfirst", "precision": "2", "showCorrectAnswer": true, "precisionType": "dp", "type": "numberentry", "scripts": {}, "mustBeReducedPC": 0, "maxValue": "{ans2}", "precisionPartialCredit": 0, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "showFeedbackIcon": true, "showPrecisionHint": false, "strictPrecision": false, "minValue": "{ans2}", "correctAnswerStyle": "plain", "correctAnswerFraction": false, "precisionMessage": "You have not given your answer to the correct precision.", "variableReplacements": [], "allowFractions": false}], "variableReplacements": [], "marks": 0}], "variables": {"currencyA": {"name": "currencyA", "templateType": "anything", "definition": "['Euro','Swedish Krona','GBP']", "description": "

list of currencies

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

Currency Conversion

\n

rebelmaths

"}, "rulesets": {}, "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)

", "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["numberone", "numbertwo", "ans1", "ans2", "exchange_list", "currencyA", "chosen_currencya", "index", "currencyb", "chosen_currencyb", "exchange", "rounded1", "rounded2"], "extensions": [], "type": "question", "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}]}], "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}]}