// Numbas version: finer_feedback_settings {"name": "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": [{"variable_groups": [], "variables": {"metres_cubed": {"templateType": "anything", "definition": "cc*(10^-6)", "description": "", "name": "metres_cubed", "group": "Ungrouped variables"}, "cc": {"templateType": "anything", "definition": "random(1200..3000#200)", "description": "", "name": "cc", "group": "Ungrouped variables"}, "s": {"templateType": "anything", "definition": "if(person['gender']='neutral','','s')", "description": "", "name": "s", "group": "Ungrouped variables"}, "person": {"templateType": "anything", "definition": "random_person()", "description": "", "name": "person", "group": "Ungrouped variables"}, "litres": {"templateType": "anything", "definition": "cc/1000", "description": "", "name": "litres", "group": "Ungrouped variables"}}, "type": "question", "name": "Converting units of volume (cc/cm^3/litres/m^3)", "parts": [{"variableReplacementStrategy": "originalfirst", "type": "gapfill", "showCorrectAnswer": true, "gaps": [{"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "allowFractions": false, "scripts": {}, "minValue": "litres", "maxValue": "litres", "marks": 1, "variableReplacements": []}], "marks": 0, "variableReplacements": [], "scripts": {}, "showFeedbackIcon": true, "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

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

"}], "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{.} \\]

", "tags": ["taxonomy"], "preamble": {"css": "", "js": ""}, "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "functions": {}, "ungrouped_variables": ["person", "litres", "cc", "s", "metres_cubed"], "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$ 
", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

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

"}, "extensions": ["random_person"], "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/"}]}]}], "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/"}]}