// Numbas version: exam_results_page_options {"name": "Convert Currency", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["numberone", "numbertwo", "numberthree", "numberfour", "ans1", "ans3", "ans2", "ans4", "exchange", "commision", "ansone", "ansthree", "anstwo", "ansfour"], "name": "Convert Currency", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

To calculate how many Dollars you get from $€\\var{numberone}:$

\n

$\\frac{€\\var{numberone}}{€\\var{exchange}} * \\$1 = \\$\\var{ans1}$  (Total amount without commision removed)

\n

$\\$\\var{ansone}$ (Final amount after commision removed) = $\\$\\var{ans1} - ((\\frac{\\var{commision}}{100}) * \\$\\var{ans1})$

\n

\n

To calculate how many Euro you get from $\\$\\var{numbertwo}:$

\n

$\\frac{\\$\\var{numbertwo}}{\\$1} * €\\var{exchange}  = €\\var{ans2}$ (Total amount without commision removed)

\n

$€\\var{anstwo}$ (Final amount after commision removed) =$ €\\var{ans2} - ((\\frac{\\var{commision}}{100}) * €\\var{ans2})$

", "rulesets": {}, "parts": [{"prompt": "

How many Dollars will I get for €$\\var{numberone}$?

\n

\\$[[0]]

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

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

\n

€[[0]]

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

How many Dollars will I get for €$\\var{numberthree}$?

\n

\\$[[0]]

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

How many Euros will I get for \\$$\\var{numberfour}$?

\n

€[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ansfour}", "strictPrecision": true, "minValue": "{ansfour}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

If the exchange rate between the Euro and the Dollar is $\\$1 = €\\var{exchange}$ and the Bank charges $\\var{commision}$% commision.

\n

(Round to the nearest cent)

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"numberone": {"definition": "random(600..800)", "templateType": "anything", "group": "Ungrouped variables", "name": "numberone", "description": ""}, "commision": {"definition": "random(2.2..2.29#0.01)", "templateType": "anything", "group": "Ungrouped variables", "name": "commision", "description": ""}, "ansthree": {"definition": "{ans3} - ({ans3}*(commision)/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "ansthree", "description": ""}, "ansone": {"definition": "{ans1} - ({ans1}*(commision)/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "ansone", "description": ""}, "exchange": {"definition": "random(0.61..0.91#0.02)", "templateType": "anything", "group": "Ungrouped variables", "name": "exchange", "description": ""}, "ans1": {"definition": "({numberone}/{exchange})", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "({numbertwo)*{exchange}", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "({numberthree}/{exchange})", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "ans4": {"definition": "({numberfour)*{exchange}", "templateType": "anything", "group": "Ungrouped variables", "name": "ans4", "description": ""}, "numberthree": {"definition": "random(150..300 except {numberone} {numbertwo})", "templateType": "anything", "group": "Ungrouped variables", "name": "numberthree", "description": ""}, "numberfour": {"definition": "random(800..950 except {numberone} {numbertwo} {numberthree})", "templateType": "anything", "group": "Ungrouped variables", "name": "numberfour", "description": ""}, "anstwo": {"definition": "{ans2} - ({ans2}*(commision)/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "anstwo", "description": ""}, "ansfour": {"definition": "{ans4} - ({ans4}*(commision)/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "ansfour", "description": ""}, "numbertwo": {"definition": "random(300..600 except {numberone})", "templateType": "anything", "group": "Ungrouped variables", "name": "numbertwo", "description": ""}}, "metadata": {"description": "

convert currency

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}