// Numbas version: exam_results_page_options {"name": "Simon's copy of APR", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"minValue": "perc2-0.01", "variableReplacements": [], "correctAnswerFraction": false, "showPrecisionHint": false, "maxValue": "perc2+0.01", "allowFractions": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "prompt": "

Calculate the Annual Percentage Rate (APR) for this credit card.

\n

Please give your answer as a percentage to two decimal places.

", "type": "numberentry", "marks": "5", "scripts": {}}], "functions": {}, "name": "Simon's copy of APR", "tags": ["Annual Percentage Rate", "APR", "REBEL", "rebel", "Rebel", "rebelmaths"], "extensions": [], "statement": "

A credit card company charges compound interest at a rate of $\\var{perc}$% per month on unpaid balances.

", "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"int": {"definition": "perc/100", "group": "Ungrouped variables", "description": "", "name": "int", "templateType": "anything"}, "perc2": {"definition": "precround(apr*100,2)", "group": "Ungrouped variables", "description": "", "name": "perc2", "templateType": "anything"}, "apr": {"definition": "precround(apr2-1,4)", "group": "Ungrouped variables", "description": "", "name": "apr", "templateType": "anything"}, "perc": {"definition": "random(0.8..1.6#0.1)", "group": "Ungrouped variables", "description": "", "name": "perc", "templateType": "anything"}, "apr2": {"definition": "precround((1+int)^12,4)", "group": "Ungrouped variables", "description": "", "name": "apr2", "templateType": "anything"}}, "ungrouped_variables": ["perc", "apr2", "int", "perc2", "apr"], "question_groups": [{"questions": [], "name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0}], "rulesets": {}, "preamble": {"css": "", "js": ""}, "showQuestionGroupNames": false, "advice": "

The monthly interest rate is $\\var{perc}$% per month. There are 12 months in one year so the APR can be calculated as follows:

\n

\n

$i=(1+\\frac{\\var{perc}}{100})^{12}-1=\\var{apr2}-1=\\var{apr}$

\n

Therefore the APR is $\\var{perc2}$%

\n

", "metadata": {"description": "

A credit card company charges compound interest at x% per month 
on unpaid balances.

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}