// Numbas version: exam_results_page_options {"question_groups": [{"name": "Group", "pickQuestions": 1, "pickingStrategy": "all-ordered", "questions": [{"name": "Convert Currency - vary currencies", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "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/"}], "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": [], "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": ""}, "type": "question"}, {"name": "Convert Currency - commission", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "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/"}], "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": [], "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": ""}, "type": "question"}]}], "showstudentname": true, "showQuestionGroupNames": false, "percentPass": 0, "metadata": {"licence": "None specified", "description": "Sample questions on currency conversion."}, "name": "MATH6051 - Currency Conversion", "navigation": {"browse": true, "showfrontpage": true, "allowregen": true, "showresultspage": "oncompletion", "reverse": true, "onleave": {"action": "none", "message": ""}, "startpassword": "", "preventleave": true}, "timing": {"timedwarning": {"action": "none", "message": ""}, "allowPause": true, "timeout": {"action": "none", "message": ""}}, "duration": 0, "feedback": {"intro": "", "feedbackmessages": [], "showanswerstate": true, "showtotalmark": true, "allowrevealanswer": true, "showactualmark": true, "advicethreshold": 0}, "type": "exam", "contributors": [{"name": "David Goulding", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2365/"}], "extensions": [], "custom_part_types": [], "resources": []}