// Numbas version: exam_results_page_options {"name": "Simon's copy of Q3 Convert Currency", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "ungrouped_variables": ["numberone", "numbertwo", "numberthree", "numberfour", "ans1", "ans3", "ans2", "ans4", "exchange", "commision", "ansone", "ansthree", "anstwo", "ansfour"], "variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "variable_groups": [], "name": "Simon's copy of Q3 Convert Currency", "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)

", "variables": {"ans2": {"name": "ans2", "definition": "({numbertwo)*{exchange}", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "ans3": {"name": "ans3", "definition": "({numberthree}/{exchange})", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "anstwo": {"name": "anstwo", "definition": "{ans2} - ({ans2}*(commision)/100)", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "numberthree": {"name": "numberthree", "definition": "random(150..300 except {numberone} {numbertwo})", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "numberone": {"name": "numberone", "definition": "random(600..800)", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "ans4": {"name": "ans4", "definition": "({numberfour)*{exchange}", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "ansone": {"name": "ansone", "definition": "{ans1} - ({ans1}*(commision)/100)", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "ansfour": {"name": "ansfour", "definition": "{ans4} - ({ans4}*(commision)/100)", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "ans1": {"name": "ans1", "definition": "({numberone}/{exchange})", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "commision": {"name": "commision", "definition": "random(1.1..2.9#0.1)", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "exchange": {"name": "exchange", "definition": "random(0.61..0.91#0.02)", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "ansthree": {"name": "ansthree", "definition": "{ans3} - ({ans3}*(commision)/100)", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "numbertwo": {"name": "numbertwo", "definition": "random(300..600 except {numberone})", "templateType": "anything", "group": "Ungrouped variables", "description": ""}, "numberfour": {"name": "numberfour", "definition": "random(800..950 except {numberone} {numbertwo} {numberthree})", "templateType": "anything", "group": "Ungrouped variables", "description": ""}}, "metadata": {"description": "

Currency Conversion

\n

rebelmaths

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

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

\n

\\$[[0]]

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

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

\n

€[[0]]

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

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

\n

\\$[[0]]

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

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

\n

€[[0]]

", "marks": 0, "sortAnswers": false, "unitTests": [], "customMarkingAlgorithm": "", "showCorrectAnswer": true}], "preamble": {"js": "", "css": ""}, "rulesets": {}, "extensions": [], "type": "question", "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"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": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}