// Numbas version: exam_results_page_options {"name": "bill sharing", "extensions": [], "custom_part_types": [], "resources": [["question-resources/ShareHousehyp.png", "/srv/numbas/media/question-resources/ShareHousehyp.png"], ["question-resources/ShareHouseline.png", "/srv/numbas/media/question-resources/ShareHouseline.png"], ["question-resources/ShareHouseNegExp.png", "/srv/numbas/media/question-resources/ShareHouseNegExp.png"], ["question-resources/ShareHousePosExp.png", "/srv/numbas/media/question-resources/ShareHousePosExp.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "bill sharing", "tags": [], "metadata": {"description": "
A bill (for a random amount) is divided equally between a number of people.
\nStudents evaluate the per-person cost for a random number of people.
\nThey then complete a table showing the cost per person for various numbers of people.
\nFinally they are asked to identify the shape of the graph that represents this function. They are given 2 exponentials, a hyperbola and a line to choose from.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "A share-house contains {n} people.
\nThey receive a bill for \\${total}.
", "advice": "Each person pays $\\var{total} \\div \\var{n} = \\var{total/n}$ When we round this to the nearest cent, each person pays {totalmoney}.
\nAs the number of people increases, the cost per person decreases.
\nThis is an inverse relationship which is represented by the positive half of a hyperbola. It has asymptotes at $x=0$ and $y=0$ so it never crosses the $y$-axis (unlike the decaying exponential function).
", "rulesets": {}, "extensions": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything"}, "total": {"name": "total", "group": "Ungrouped variables", "definition": "random(100..700)", "description": "", "templateType": "anything"}, "totalmoney": {"name": "totalmoney", "group": "Ungrouped variables", "definition": "currency(round(total*100/n)/100,'$','')", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "total", "totalmoney"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "If each person in the house pays an equal share of the bill, how much does each person pay?
\nGive your answer in dollars, rounded to the nearest cent.
", "minValue": "round(total*100/n)/100", "maxValue": "round(total*100/n)/100", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Now let's explore what happens if there is a different number of people in the share-house.
\nComplete this table showing how much each person has to pay in each case.
\nnumber of people | \n1 | \n2 | \n3 | \n4 | \n5 | \n
amount to pay | \n{total} | \n[[0]] | \n[[1]] | \n[[2]] | \n[[3]] | \n
Which of the following graphs could represent this relationship?
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["", "", "", ""], "matrix": [0, 0, 0, "1"], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}