// Numbas version: exam_results_page_options {"name": "Consumer Arithmetic - Calculating a simple rate of pay", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"person": {"description": "

A random person

", "group": "A person", "name": "person", "templateType": "anything", "definition": "random_person()"}, "payment": {"description": "

amount person gets paid

", "group": "Ungrouped variables", "name": "payment", "templateType": "anything", "definition": "random(1400,1600,1800)"}, "weeks": {"description": "

Number of weeks person works for

", "group": "Ungrouped variables", "name": "weeks", "templateType": "anything", "definition": "random(5,8)"}}, "ungrouped_variables": ["payment", "weeks"], "statement": "

{person['name']} gets paid a total of $\\$\\var{payment}$ at the end of {person['pronouns']['their']} summer job; {person['pronouns']['they']} work{s} for $\\var{weeks}$ weeks.

", "name": "Consumer Arithmetic - Calculating a simple rate of pay", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Calculate a rate of pay (in pounds per week) given the total pay over a given period of time.

"}, "functions": {}, "preamble": {"js": "", "css": ""}, "variable_groups": [{"variables": ["person"], "name": "A person"}], "extensions": ["random_person"], "rulesets": {}, "advice": "

We are told that {person['name']} gets paid a total of $£\\var{payment}$ at the end of {person['pronouns']['their']} summer job and that {person['pronouns']['they']} work{s} at {person['pronouns']['their']} job for $\\var{weeks}$ weeks.

\n

To calculate the amount of money {person['name']} gets paid per week, we divide the total amount of money that {person['pronouns']['they']} earn{s} at the end of {person['pronouns']['their']} job by how many weeks that {person['pronouns']['they']} work{s} for.

\n

\\[£\\displaystyle\\frac{\\var{payment}}{\\var{weeks}} = £\\var{{payment/weeks}}.\\]

\n

Therefore {person['name']} gets paid $£\\var{{payment/weeks}}$/week.

\n

Note that in compound measures, a forward slash symbol / is often used instead of the word 'per'. So $£\\var{{payment/weeks}}$/week means the same as $£\\var{{payment/weeks}}$ per week.

", "parts": [{"gaps": [{"allowFractions": false, "correctAnswerFraction": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "minValue": "{payment}/{weeks}", "scripts": {}, "variableReplacements": [], "type": "numberentry", "maxValue": "{payment}/{weeks}", "marks": 1, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "mustBeReducedPC": 0, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false}], "extendBaseMarkingAlgorithm": true, "prompt": "

How much does {person['name']} get paid per week?

\n

$[[0]]/week

", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "type": "gapfill", "marks": 0, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "unitTests": [], "sortAnswers": false}], "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "contributors": [{"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}, {"name": "Paul Hancock", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1738/"}]}]}], "contributors": [{"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}, {"name": "Paul Hancock", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1738/"}]}