// Numbas version: finer_feedback_settings {"name": "NA Working out days hired from total cost (10+)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NA Working out days hired from total cost (10+)", "tags": ["LANTITE", "Western Sydney MESH"], "metadata": {"description": "
Used for LANTITE preparation (Australia). NA = Number & Algebra strand. Students are given the total cost, insurance fee and daily hire charge (all randomly generated). They need to calculate the number of days hired.
", "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 of \\${total_cost} includes both the insurance (\\${insurance}) and the cost per day.
\nIf we subtract the insurance from the total cost we will have the cost per day.
\n\\${total_cost} - \\${insurance} = \\${total_cost-insurance}
\nThe bike cost \\${hire_per_day} to hire each day.
\nIf we divide the total amount paid for the hire component by the daily cost we will get the number of days that the bike was hired.
\n{total_cost-insurance} ÷ {hire_per_day} = {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, "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/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}