// Numbas version: exam_results_page_options {"name": "APR", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["perc", "apr2", "int", "perc2", "apr"], "name": "APR", "tags": ["Annual Percentage Rate", "APR", "REBEL", "rebel", "Rebel", "rebelmaths"], "preamble": {"css": "", "js": ""}, "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

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

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

\n

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

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

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"perc": {"definition": "random(0.8..1.6#0.1)", "templateType": "anything", "group": "Ungrouped variables", "name": "perc", "description": ""}, "int": {"definition": "perc/100", "templateType": "anything", "group": "Ungrouped variables", "name": "int", "description": ""}, "perc2": {"definition": "precround(apr*100,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "perc2", "description": ""}, "apr": {"definition": "precround(apr2-1,4)", "templateType": "anything", "group": "Ungrouped variables", "name": "apr", "description": ""}, "apr2": {"definition": "precround((1+int)^12,4)", "templateType": "anything", "group": "Ungrouped variables", "name": "apr2", "description": ""}}, "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", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}