// Numbas version: exam_results_page_options {"name": "Convert Currency - commission", "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", "group": "Ungrouped variables", "description": "", "definition": "random(600..800)"}, "ans2": {"name": "ans2", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "({numbertwo)*{exchange}"}, "exchange": {"name": "exchange", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(0.61..0.91#0.02)"}, "ansthree": {"name": "ansthree", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "{ans3} - ({ans3}*(commision)/100)"}, "numberfour": {"name": "numberfour", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(800..950 except {numberone} {numbertwo} {numberthree})"}, "commision": {"name": "commision", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1.1..2.9#0.1)"}, "numbertwo": {"name": "numbertwo", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(300..600 except {numberone})"}, "ansfour": {"name": "ansfour", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "{ans4} - ({ans4}*(commision)/100)"}, "ans1": {"name": "ans1", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "({numberone}/{exchange})"}, "anstwo": {"name": "anstwo", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "{ans2} - ({ans2}*(commision)/100)"}, "numberthree": {"name": "numberthree", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(150..300 except {numberone} {numbertwo})"}, "ansone": {"name": "ansone", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "{ans1} - ({ans1}*(commision)/100)"}, "ans3": {"name": "ans3", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "({numberthree}/{exchange})"}, "ans4": {"name": "ans4", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "({numberfour)*{exchange}"}}, "ungrouped_variables": ["numberone", "numbertwo", "numberthree", "numberfour", "ans1", "ans3", "ans2", "ans4", "exchange", "commision", "ansone", "ansthree", "anstwo", "ansfour"], "metadata": {"description": "

Currency Conversion

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "extensions": [], "advice": "

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

\n

$\\frac{€\\var{numberone}}{€\\var{exchange}} \\times \\$1 = \\$\\var{precround(ans1,3)}$  (Total amount without commission removed)

\n

Commision =$ \\frac{\\var{commision}}{100} \\times \\var{precround(ans1,3)}$

\n

Final amount after commission removed = $\\$\\var{precround(ans1,3)} - (\\frac{\\var{commision}}{100} \\times \\var{precround(ans1,3)})$ = $\\$\\var{precround(ansone,2)}$

\n

\n

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

\n

$\\frac{\\$\\var{numbertwo}}{\\$1} \\times €\\var{exchange}  = €\\var{precround(ans2,3)}$ (Total amount without commission removed)

\n

Commision =$ \\frac{\\var{commision}}{100} \\times \\var{precround(ans2,3)}$

\n

Final amount after commission removed =$ €\\var{precround(ans2,3)} - (\\frac{\\var{commision}}{100} \\times \\var{precround(ans2,3)})$ = $€\\var{precround(anstwo,2)}$ 

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

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

\n

\\$[[0]]

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

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

\n

€[[0]]

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

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

\n

\\$[[0]]

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

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

\n

€[[0]]

", "variableReplacements": [], "unitTests": [], "showCorrectAnswer": true, "scripts": {}, "sortAnswers": false, "extendBaseMarkingAlgorithm": true}], "statement": "

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

\n

(Round to the nearest cent)

", "preamble": {"js": "", "css": ""}, "name": "Convert Currency - commission", "type": "question", "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "David Goulding", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2365/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "David Goulding", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2365/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}