// 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.

\n

Students evaluate the per-person cost for a random number of people.

\n

They then complete a table showing the cost per person for various numbers of people.

\n

Finally 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.

\n

They 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}.

\n

As the number of people increases, the cost per person decreases.

\n

This 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?

\n

Give 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.

\n

Complete this table showing how much each person has to pay in each case.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
number of people12345
amount to pay{total}[[0]][[1]][[2]][[3]]
", "gaps": [{"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, "minValue": "round(total*100/2)/100", "maxValue": "round(total*100/2)/100", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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, "minValue": "round(total*100/3)/100", "maxValue": "round(total*100/3)/100", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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, "minValue": "round(total*100/4)/100", "maxValue": "round(total*100/4)/100", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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, "minValue": "round(total*100/5)/100", "maxValue": "round(total*100/5)/100", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "1_n_2", "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": "

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/"}]}