// Numbas version: exam_results_page_options {"name": "Simple and Compound Interest", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["years", "rate", "amount", "simpans", "compans", "year1", "simp1yr"], "name": "Simple and Compound Interest", "tags": [], "advice": "

Remember to calculate the interest as a percentage of the original amount.

\n

In simple interest, this then gets multiplied by the numbers of years, and added to the original amount.

\n

In compound interest, you have to add and recalculate the interest each year.

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

Jon has a savings account containing £$\\var{amount}$. The account has a simple interest rate of $\\var{rate}$% annually.

\n

Calculate how much Jon has in the savings account after 1 year.

", "allowFractions": false, "variableReplacements": [], "maxValue": "{simp1yr+0.5}", "minValue": "{simp1yr-0.5}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"prompt": "

Jon has a savings account containing £$\\var{amount}$. The account has a simple interest rate of $\\var{rate}$% annually.

\n

Calculate how much Jon has in the savings account after $\\var{years}$ years.

", "allowFractions": false, "variableReplacements": [], "maxValue": "{simpans+0.5}", "minValue": "{simpans-0.5}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"prompt": "

Jon has a savings account containing £$\\var{amount}$. The account has a compound interest rate of $\\var{rate}$% annually.

\n

\n

Calculate how much Jon has in the savings account after 1 year.

", "allowFractions": false, "variableReplacements": [], "maxValue": "{simp1yr+0.5}", "minValue": "{simp1yr-0.5}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"prompt": "

Jon has a savings account containing £$\\var{amount}$. The account has a compound interest rate of $\\var{rate}$% annually.

\n

Calculate how much Jon has in the savings account after $\\var{years}$ years.

", "allowFractions": false, "variableReplacements": [], "maxValue": "{compans+0.5}", "minValue": "{compans-0.5}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "extensions": [], "statement": "

Answer the following questions about simple and compound interest. Your answer will be in monetary form - you don't need to enter the £ sign, but remember money form always has two decimal places, e.g., 599.48 or 399.00. Make sure you input your answers in this format.

\n

If you need revision on how to round to a given number of decimals places, check out the decimals lesson again.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"compans": {"definition": "precround(({amount}*((1+({rate}/100))^{years})),2)", "templateType": "anything", "group": "Ungrouped variables", "name": "compans", "description": ""}, "simpans": {"definition": "precround(((({amount}/100)*{rate})*{years})+{amount},2)", "templateType": "anything", "group": "Ungrouped variables", "name": "simpans", "description": ""}, "simp1yr": {"definition": "precround(((({amount}/100)*{rate}))+{amount},2)", "templateType": "anything", "group": "Ungrouped variables", "name": "simp1yr", "description": ""}, "rate": {"definition": "random(0.5,1,1.5,2,2.5,3,3.5,4,4.5,5,5.5,6,6.5,7,7.5,8)", "templateType": "anything", "group": "Ungrouped variables", "name": "rate", "description": ""}, "year1": {"definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "year1", "description": ""}, "amount": {"definition": "random(100,200,300,400,500,600,700,800,900,1000,1200,1500,1600,1800,2000,2200,2400,2500,2600,2700,2800,3000,3100,3200,3300,3400,3500,3600,3700,3800,3900,4000,4200,4300,4500,4600,4800,5000)", "templateType": "anything", "group": "Ungrouped variables", "name": "amount", "description": ""}, "years": {"definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "years", "description": ""}}, "metadata": {"description": "

Questions checking your knowledge of simple and compound interest.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}]}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}