// Numbas version: finer_feedback_settings {"name": "Calculation: Division Word Problem", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculation: Division Word Problem", "tags": [], "metadata": {"description": "
Given the total cost, insurance cost, and daily cost of hiring a bicycle, calculate the number of days the bicycle was hired for.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "\n\n\n\n\n\n\n\n\n\n{names[index]} hired a bike during his holiday. The insurance cost was \\${insurance} regardless of the number of hire days and the hire fee was an additional \\${hire_per_day} per day.
", "advice": "\n\nThe total cost includes both the insurance and the hire cost:
\n\\[ \\begin{split} \\text{total cost} &= \\text{hire cost} + \\text{insurance} \\\\ $\\var{total_cost} &= \\text{hire cost} + $\\var{insurance} \\end{split} \\]
\nIf we subtract the insurance from the total cost we will have the hire cost:
\n\\[ \\text{hire cost} = $\\var{total_cost} - $\\var{insurance} = $\\var{total_cost-insurance} \\]
\nThe question tells us that the bike costs \\$$\\var{hire_per_day}$ to hire each day.
\nIf we divide the total hire cost by the daily hire cost we will get the number of days:
\n\\[\\text{number of days} = \\var{total_cost-insurance} ÷ \\var{hire_per_day} = \\var{days} \\]
\n{names[index]} hired the bike for {days} days.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"insurance": {"name": "insurance", "group": "Ungrouped variables", "definition": "random(11 .. 27#1)", "description": "\n\n\n\nThe one-off fee for insurance.
", "templateType": "randrange", "can_override": false}, "days": {"name": "days", "group": "Ungrouped variables", "definition": "random(4 .. 9#1)", "description": "\n\nThe number of days that the bike is hired.
", "templateType": "randrange", "can_override": false}, "hire_per_day": {"name": "hire_per_day", "group": "Ungrouped variables", "definition": "random(22 .. 34#1)", "description": "\n\n\n\nThe dollar cost to hire the bike per day.
", "templateType": "randrange", "can_override": false}, "index": {"name": "index", "group": "Ungrouped variables", "definition": "random(0 .. 7#1)", "description": "\n\n\n\n\n\n\nIndex for list of names.
", "templateType": "randrange", "can_override": false}, "names": {"name": "names", "group": "Ungrouped variables", "definition": "[ \"Sam\", \"Joseph\", \"Mark\", \"Jim\", \"Tarin\", \"Luke\", \"Ali\", \"Ben\" ]", "description": "\n\n\n\n\n\nList of boys names for bike hire.
", "templateType": "list of strings", "can_override": false}, "total_cost": {"name": "total_cost", "group": "Ungrouped variables", "definition": "{insurance}+{hire_per_day}*{days}", "description": "\n\n\n\nTotal cost of hiring the bike over the time period.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["days", "hire_per_day", "insurance", "total_cost", "index", "names"], "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 the total cost of the bike was \\${total_cost}, how many days did {names[index]} hire the bike for?
", "minValue": "{days}", "maxValue": "{days}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}