// Numbas version: exam_results_page_options {"name": "MG Lap swimming metres to km (10+)", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "MG Lap swimming metres to km (10+)", "tags": ["LANTITE", "Western Sydney MESH"], "metadata": {"description": "

Used for LANTITE preparation (Australia). MG = Measurement & Geometry strand. Student must calculate distance swum in km given number of laps of 50m pool, days of week and weeks in term. These variables are randomly selected.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

{name} goes to swimming training {days} days per week. On average, at each training session {heshe} swims {laps} laps of the 50 metre pool.

", "advice": "

{name} swims {laps} laps of the 50 metre pool on average each training session.

\n

Therefore {heshe} swims {laps} x 50 = {formatnumber(laps*50,\"si-en\")} metres each training session.

\n

{name} trains {days} days per week.

\n

After one week, {heshe} swims {days} x {formatnumber(laps*50,\"si-en\")} m = {formatnumber(days*laps*50,\"si-en\")} m.

\n

After {termlength} weeks, {heshe} swims {termlength} x {formatnumber(days*laps*50,\"si-en\")} m = {formatnumber(termlength*days*laps*50,\"si-en\")} m.

\n

There are 1000 metres in 1 kilometre so to convert from metres to kilometres we divide by 1000.

\n

{formatnumber(10*days*laps*50,\"si-en\")} ÷ 1000 = {formatnumber(kms,\"si-en\")} kilometres.

\n

{name} swims {formatnumber(kms,\"si-en\")} kilometres during the {termlength} week term.

", "rulesets": {}, "extensions": ["random_person"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"name": {"name": "name", "group": "Ungrouped variables", "definition": "person['name']", "description": "

The person's name.

", "templateType": "anything", "can_override": false}, "person": {"name": "person", "group": "Ungrouped variables", "definition": "random_person()", "description": "

Setting up the random person dictionary.

", "templateType": "anything", "can_override": false}, "heshe": {"name": "heshe", "group": "Ungrouped variables", "definition": "person['pronouns']['they']", "description": "

He or she based on name.

", "templateType": "anything", "can_override": false}, "days": {"name": "days", "group": "Ungrouped variables", "definition": "random(2 .. 6#1)", "description": "

The number of days training per week.

", "templateType": "randrange", "can_override": false}, "laps": {"name": "laps", "group": "Ungrouped variables", "definition": "random(20 .. 40#2)", "description": "

The number of laps of the 50m pool swum on average at each training session.

", "templateType": "randrange", "can_override": false}, "kms": {"name": "kms", "group": "Ungrouped variables", "definition": "laps*50*days*termlength/1000", "description": "

The number of kilometres swum after 10 week. This is the answer.

", "templateType": "anything", "can_override": false}, "termlength": {"name": "termlength", "group": "Ungrouped variables", "definition": "random(9..11)", "description": "

The number of weeks in the term.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["person", "name", "heshe", "days", "laps", "termlength", "kms"], "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 kilometres would {name} swim during a {termlength} week term?

\n

Do not round your answer, and do not enter the measurement units (km).

", "minValue": "{kms}", "maxValue": "{kms}", "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", "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/"}]}