// Numbas version: finer_feedback_settings {"name": "Forward Contract", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["s0", "r", "m", "F"], "name": "Forward Contract", "tags": [], "advice": "", "rulesets": {}, "parts": [{"precisionType": "dp", "prompt": "

The spot price of an asset at $t=0$ is £{s0}. Calculate the forward price (to 2 d.p) of this asset at $t=0$ if the risk free interest rate is {r*100}% and the maturity date is {m} months from now.

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "F", "minValue": "F", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"r": {"definition": "random(0.01..0.2#0.01)", "templateType": "randrange", "group": "Ungrouped variables", "name": "r", "description": ""}, "m": {"definition": "random(1..12#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "m", "description": ""}, "s0": {"definition": "random(100..500#50)", "templateType": "randrange", "group": "Ungrouped variables", "name": "s0", "description": ""}, "F": {"definition": "{s0}*(e^({r}*({m}/12)))", "templateType": "anything", "group": "Ungrouped variables", "name": "F", "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/"}]}