// Numbas version: exam_results_page_options {"name": "Heather's copy of Converting units of volume (cc/cm^3/litres/m^3)", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"cc": {"name": "cc", "group": "Ungrouped variables", "description": "", "definition": "random(1200..3000#200)", "templateType": "anything"}, "person": {"name": "person", "group": "Ungrouped variables", "description": "", "definition": "random_person()", "templateType": "anything"}, "s": {"name": "s", "group": "Ungrouped variables", "description": "", "definition": "if(person['gender']='neutral','','s')", "templateType": "anything"}, "metres_cubed": {"name": "metres_cubed", "group": "Ungrouped variables", "description": "", "definition": "cc*(10^-6)", "templateType": "anything"}, "litres": {"name": "litres", "group": "Ungrouped variables", "description": "", "definition": "cc/1000", "templateType": "anything"}}, "functions": {}, "statement": "

{person['name']} is looking to buy a car. {capitalise(person['pronouns']['they'])} find{s} one advertised with an engine size of $\\var{cc}$cc. 

\n

{person['name']} recognises that 'cc' stands for units of cubic centimetres (cm$^3$) and knows the following conversions:

\n\n\n\n\n\n\n\n\n\n\n\n
$1$ m$100$ cm
$1$ litre$1000\\text{cm}^3$ 
", "variable_groups": [], "parts": [{"showFeedbackIcon": true, "gaps": [{"scripts": {}, "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "mustBeReducedPC": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "minValue": "litres", "mustBeReduced": false, "maxValue": "litres", "marks": 1, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"]}], "prompt": "

{person['name']} applies to find out how much the insurance for the car would cost, but is required to state the engine size in litres. 

\n

What is the engine size in litres?

\n

 [[0]] litres. 

\n

", "variableReplacements": [], "marks": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "type": "gapfill"}, {"showFeedbackIcon": true, "gaps": [{"strictPrecision": false, "precisionMessage": "You have not given your answer to the correct precision.", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "mustBeReducedPC": 0, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showPrecisionHint": false, "showCorrectAnswer": true, "minValue": "metres_cubed", "precisionType": "dp", "mustBeReduced": false, "precision": "4", "marks": "2", "variableReplacementStrategy": "originalfirst", "maxValue": "metres_cubed", "scripts": {}, "precisionPartialCredit": 0, "type": "numberentry", "notationStyles": ["plain", "en", "si-en"]}], "prompt": "

The specification of a second car gives the engine size in m$^3$. In order for {person['name']} to make a comparison {person['pronouns']['they']} convert{s} the engine size of the first car to cubic metres.

\n

What is the engine size of the first car in units of m$^3$?

\n

[[0]]m$^3$      Give your answer to 4 decimal places

", "variableReplacements": [], "marks": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "type": "gapfill"}], "name": "Heather's copy of Converting units of volume (cc/cm^3/litres/m^3)", "ungrouped_variables": ["person", "litres", "cc", "s", "metres_cubed"], "rulesets": {}, "tags": ["taxonomy"], "extensions": ["random_person"], "preamble": {"js": "", "css": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

a)

\n

The advertised engine size is $\\var{cc}$ cubic centimetres. To convert cubic centimetres to litres, we divide by $1000$. 

\n

\\[\\var{cc}\\div 1000= \\var{litres}\\text{ litres.}\\]

\n

b)

\n

In order to convert to cubic metres, we first note that 

\n

\\[ 1 \\text{cm} = 0.01 \\text{m.} \\]

\n

An example of a volume of $1\\text{cm}^3$ is a cube with $1$cm sides. Converting each side into metres,

\n

\\begin{align}
1\\text{cm}^3 &= 1\\text{cm}\\times1\\text{cm}\\times1\\text{cm} \\\\
&= 0.01\\text{m}\\times0.01\\text{m}\\times0.01\\text{m} \\\\
&= 0.000001\\text{m}^3 \\text{.}
\\end{align}

\n

Therefore $\\var{cc}\\text{cm}^3$ is 

\n

\\[ \\var{cc} \\times 0.000001 = \\var{metres_cubed}\\text{m}^3\\text{.} \\]

", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Convert figures for car engine sizes between cc (cm^3), litres, and m^3.

"}, "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Heather Driscoll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1703/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Heather Driscoll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1703/"}]}