// Numbas version: exam_results_page_options {"name": "present value - simple interest - short term debt - promissory note, commercial paper, bank accepted bill etc", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "present value - simple interest - short term debt - promissory note, commercial paper, bank accepted bill etc", "ungrouped_variables": ["loan", "S", "period", "n", "ipa", "ipadec", "P", "Prounded"], "statement": "

If you are unsure of how to do a question, click on Reveal answers to see the full working. Then, once you understand how to do the question, click on Try another question like this one to start again. Do each question repeatedly to ensure you have mastered it.

", "extensions": [], "advice": "

We are asked to find the present value of a {loan}. We do this using simple interest. Therefore we will use the equation

\n

$\\displaystyle P=\\frac{S}{(1+rt)}$,

\n

where $P$ is the present value, $S$ is the future value (the face value, or the value at maturity), $r$ is the interest rate (or the yield) per annum and $t$ is the time in years.

\n

In our situation we have,

\n

$S=\\var{S}$,

\n

$r=\\var{ipa}\\%=\\var{ipadec}$,

\n

$t=\\frac{\\var{n}}{\\var{period[1]}}$, 

\n

and therefore

\n

$\\begin{align}P&=\\frac{\\var{S}}{1+\\var{ipadec}\\times \\frac{\\var{n}}{\\var{period[1]}}}\\\\&=\\$ \\var{Prounded} \\text{        (to the nearest cent)}\\end{align}$ 

", "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "preamble": {"js": "", "css": ""}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "Using simple interest determine the present value of a short term loan (promissory note, commercial paper, bank accepted bill etc)."}, "tags": [], "variables": {"n": {"templateType": "anything", "name": "n", "description": "", "group": "Ungrouped variables", "definition": "random(20..240)"}, "period": {"templateType": "anything", "name": "period", "description": "", "group": "Ungrouped variables", "definition": "['days', 365]"}, "S": {"templateType": "anything", "name": "S", "description": "", "group": "Ungrouped variables", "definition": "random(list(1000..10000#1000)+list(10000..100000#10000)+list(100000..1000000#100000)+[1000000])"}, "Prounded": {"templateType": "anything", "name": "Prounded", "description": "", "group": "Ungrouped variables", "definition": "precround(P,2)"}, "loan": {"templateType": "anything", "name": "loan", "description": "", "group": "Ungrouped variables", "definition": "random('promissory note', 'commercial paper', 'bank accepted bill', 'commercial paper', 'bank endorsed bill')"}, "P": {"templateType": "anything", "name": "P", "description": "

present value

", "group": "Ungrouped variables", "definition": "S/(1+ipadec*n/period[1])"}, "ipa": {"templateType": "anything", "name": "ipa", "description": "

interest per annum as a percentage (add the symbol afterwards)

", "group": "Ungrouped variables", "definition": "random(4..10)"}, "ipadec": {"templateType": "anything", "name": "ipadec", "description": "", "group": "Ungrouped variables", "definition": "ipa/100"}}, "functions": {}, "variable_groups": [], "parts": [{"customName": "", "scripts": {}, "useCustomName": false, "variableReplacements": [], "showCorrectAnswer": true, "type": "gapfill", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "prompt": "
\n
\n
A {loan} has a face value of $\\$\\var{S}$ and has $\\var{n}$ days to maturity. If the yield is $\\var{ipa}\\%$ per annum what is the current price of the {loan}?
\n
\n
\n
\n

$\\$\\,$[[0]] (to the nearest cent)

", "gaps": [{"allowFractions": false, "unitTests": [], "useCustomName": false, "minValue": "P", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "precisionType": "dp", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "precision": "2", "mustBeReducedPC": 0, "mustBeReduced": false, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "customName": "", "scripts": {}, "precisionMessage": "You have not given your answer to the nearest cent.", "variableReplacements": [], "showCorrectAnswer": true, "type": "numberentry", "precisionPartialCredit": 0, "strictPrecision": false, "maxValue": "P", "showPrecisionHint": false, "marks": 1}], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "marks": 0, "unitTests": []}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}