// Numbas version: finer_feedback_settings {"name": "MG NC Find the midpoint between two times (10+)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "MG NC Find the midpoint between two times (10+)", "tags": ["LANTITE", "Western Sydney MESH"], "metadata": {"description": "
Used for LANTITE preparation (Australia). MG = Measurement & Geometry strand. NC = Non Calculator. The start time for Period 1 (randomised) and the end time for Period 2 (randomised) are given, and students are asked to find the middle of those two times.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "\n\n\n\n\nAt The Lakes High School, period 1 starts at 8:{start} am. It is immediately followed by period 2, which ends at 10:{end} am. The two periods are of the same length.
", "advice": "First work out how many minutes there are between the start of period 1 and the end of period 2.
\nBefore 9 am there are {60-start} minutes.
\nBetween 9 am and 10 am there are 60 minutes.
\nAfter 10 am there are {end} minutes.
\nSo in total periods 1 and 2 last for {60-start} + 60 + {end} minutes = {120-start+ end} minutes.
\nThen halve this number to get the number of minutes in each period. Half of {120-start+ end} minutes is {per_length} minutes.
\nThen count on this many minutes from the start of period 1. Adding {per_length} minutes to 8:{start} am gives 9:{per2start} am.
\nPeriod 2 will start at {per2start} minutes past 9 am.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"per_length": {"name": "per_length", "group": "Ungrouped variables", "definition": "total_time/2", "description": "The length of each of the two periods. It is found by dividing total_time by 2. It will be an integer as both start and end are even.
", "templateType": "anything", "can_override": false}, "end": {"name": "end", "group": "Ungrouped variables", "definition": "random(10 .. 28#2)", "description": "Period 2 ends this many minutes after 10am. ie Period 2 ends some time between 10:10 and 10:28.This is given in the question. It is an even number to ensure that there are no half minutes for period length, and greater than 9 to ensure two digits for the minutes.
", "templateType": "randrange", "can_override": false}, "total_time": {"name": "total_time", "group": "Ungrouped variables", "definition": "120+end-start", "description": "How many minutes between the start of period 1 and the end of period 2. It is found by adding (60 - start (the minutes before 9am)) to (60 + end(the minutes after 9am)).
", "templateType": "anything", "can_override": false}, "per2start": {"name": "per2start", "group": "Ungrouped variables", "definition": "per_length-60+start", "description": "Period 2 starts this many minutes after 9am. This is what students need to work out. From 9am, add the period length then subtract the portion of period 1 that is before 9am (ie 60 - start). This gives the calculation per_length - (60 - start).
", "templateType": "anything", "can_override": false}, "start": {"name": "start", "group": "Ungrouped variables", "definition": "random(32 .. 58#2)", "description": "Period 1 starts this many minutes after 8am. ie Period 1 starts some time between 8:32 and 8:58. This is given in the question. It is an even number to ensure that there are no half minutes for period length.
", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["start", "end", "total_time", "per_length", "per2start"], "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": "How many minutes past 9 am will Period 2 start? Enter just the number, without the unit.
", "minValue": "per2start", "maxValue": "per2start", "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": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}], "resources": []}]}], "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}