// Numbas version: finer_feedback_settings {"name": "Forward Contract on Currency", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["y", "us", "uk", "s0", "F", "d"], "name": "Forward Contract on Currency", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"precisionType": "dp", "prompt": "

What is the forward exchange rate to two decimal places?

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

What is the forward price (to 2 d.p) to buy/sell \\${d}?

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "d*F", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": 1, "minValue": "d*F", "type": "numberentry", "showPrecisionHint": false}], "statement": "

Suppose that the {y} year interest rate in the US and the UK is {us*100}% and {uk*100}% respectively. Suppose that the spot exchange rate is $S_0$={s0} £/$.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"d": {"definition": "random(1000..5000#50)", "templateType": "randrange", "group": "Ungrouped variables", "name": "d", "description": ""}, "F": {"definition": "{s0}*(e^(({uk}-{us})*{y}))", "templateType": "anything", "group": "Ungrouped variables", "name": "F", "description": ""}, "s0": {"definition": "random(0.52..0.7#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "s0", "description": ""}, "us": {"definition": "random(0.07..0.1#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "us", "description": ""}, "uk": {"definition": "random(0.01..0.05#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "uk", "description": ""}, "y": {"definition": "random(1..5#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "y", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Habiba Gora", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/494/"}]}]}], "contributors": [{"name": "Habiba Gora", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/494/"}]}