// Numbas version: exam_results_page_options {"name": "Practical 4 Q1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["value1", "value2", "value3", "n", "m", "interest", "int", "intm", "intw", "intd", "force", "monthly", "weekly", "daily", "cont"], "name": "Practical 4 Q1", "tags": [], "advice": "

In order to obtain the NPV, you must first change the nominal rate per annum payable monthly/weekly/yearly/continuously into an effective rate per month.

\n\n

As $i^{(12)}$={interest}%, divide this by 12 to obtain $i_{[p]}$ as $i_{[p]}={i^{(p)} \\over p}$ so then the interest rate payable per month is $i_{[12]}$={int}*$1 \\over 12$.

\n\n

As we assume that each month has 4 weeks then we use:

\n

$1+i=(1+{i^{(p)} \\over p})^p$

\n

(see Numbas- Nominal Rates)

\n

with:

\n\n

In this case, $i$={intw}

\n\n

As we assume that each month has 30 days then we use:

\n

$1+i=(1+{i^{(p)} \\over p})^p$

\n

(see Numbas- Nominal Rates)

\n

with:

\n\n

In this case, $i$= {intd}

\n

\n\n

The force of interest $\\delta$ is the nominal rate payable continuously.

\n

$(1+{i^{(p)} \\over p})^p=e^\\delta$ and so $i_{[p]}=e^{\\delta \\over p}-1$

\n

(see Force of Interest)

\n

with:

\n\n

In this case, $i_{[12]}$= {force}

\n\n

In order to work out the NPV, you must discount each value to time $t=0$:

\n

$NPV=x_1v+x_2v^2+...+x_nv^n$

\n

(see Numbas- Net Present Value)

\n

In this case we have:

\n

$NPV=-x_1-x_2v^1-x_2v^2...-x_2v^{n-2}+x_3v^n$

\n

where:

\n\n

Substituting in the interest rates obtained above into the NPV expression gives the NPV if the nominal rate is {interest}% payable monthly/weekly/daily/continuously.

", "rulesets": {}, "parts": [{"precisionType": "dp", "prompt": "

the nominal interest rate payable monthly is {interest}%?

", "precisionMessage": "

You have not given your answer to two decimal places.

", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{monthly}", "minValue": "{monthly}", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": "10", "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "prompt": "

the nominal interest rate payable weekly {interest}%? (Assume each month has 4 weeks)

", "precisionMessage": "

You have not given your answer to two decimal places.

", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{weekly}", "minValue": "{weekly}", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": "15", "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "prompt": "

the nominal interest rate payable daily is {interest}%? (Assume each month has 30 days)

", "precisionMessage": "

You have not given your answer to two decimal places.

", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{daily}", "minValue": "{daily}", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": "15", "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "prompt": "

the force of interest, $\\delta$, corresponds to a nominal interest rate of {interest}% per annum?

", "precisionMessage": "

You have not given your answer to two decimal places.

", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{cont}", "minValue": "{cont}", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": "15", "type": "numberentry", "showPrecisionHint": false}], "statement": "

At time t=0 a construction company pays £{value1} to purchase a plot of land and materials to build a house. The comapny hires some workers that are paid a total of £{value2} at the end of each month for {m} months. The company sells the house at the end of year {n} for £{value3}.

\n

Construct an Excel spreadsheet that shows the cashflow of each month and which analytically calculates the net present value at different interest rates. 

\n

What is the NPV (to two decimal places) if:

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"intd": {"definition": "((1+({intm}/30))^30)-1", "templateType": "anything", "group": "Ungrouped variables", "name": "intd", "description": ""}, "force": {"definition": "(e^{intm})-1", "templateType": "anything", "group": "Ungrouped variables", "name": "force", "description": ""}, "value1": {"definition": "random(30000..40000#1000)", "templateType": "randrange", "group": "Ungrouped variables", "name": "value1", "description": ""}, "int": {"definition": "random(0.02..0.05#0.001)", "templateType": "randrange", "group": "Ungrouped variables", "name": "int", "description": ""}, "m": {"definition": "(12*n)-2", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}, "daily": {"definition": "-{value1}-(({value2)*12*((1-((1+{intd})^-{m}))/(12*{intd})))+({value3}/((1+{intd})^(12*{n})))", "templateType": "anything", "group": "Ungrouped variables", "name": "daily", "description": ""}, "n": {"definition": "random(1..3#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "n", "description": ""}, "monthly": {"definition": "-{value1}-(({value2)*12*((1-((1+{intm})^-{m}))/{int}))+({value3}/((1+{intm})^(12*{n})))", "templateType": "anything", "group": "Ungrouped variables", "name": "monthly", "description": ""}, "intw": {"definition": "((1+({intm}/4))^4)-1", "templateType": "anything", "group": "Ungrouped variables", "name": "intw", "description": ""}, "value3": {"definition": "random(200000..300000#5000)", "templateType": "randrange", "group": "Ungrouped variables", "name": "value3", "description": ""}, "intm": {"definition": "{int}/12", "templateType": "anything", "group": "Ungrouped variables", "name": "intm", "description": ""}, "interest": {"definition": "{int}*100", "templateType": "anything", "group": "Ungrouped variables", "name": "interest", "description": ""}, "cont": {"definition": "-{value1}-(({value2)*12*((1-((1+{force})^-{m}))/(12*{force})))+({value3}/((1+{force})^(12*{n})))", "templateType": "anything", "group": "Ungrouped variables", "name": "cont", "description": ""}, "value2": {"definition": "random(3000..5500#500)", "templateType": "randrange", "group": "Ungrouped variables", "name": "value2", "description": ""}, "weekly": {"definition": "-{value1}-(({value2)*12*((1-((1+{intw})^-{m}))/(12*{intw})))+({value3}/((1+{intw})^(12*{n})))", "templateType": "anything", "group": "Ungrouped variables", "name": "weekly", "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/"}]}