// Numbas version: exam_results_page_options {"name": "Substitute values into formulas", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

Substitute given values into formulas.

", "licence": "Creative Commons Attribution 4.0 International"}, "ungrouped_variables": ["r", "x1", "n", "x2", "const", "sales"], "type": "question", "extensions": ["geogebra"], "advice": "

When inserting numbers into your calculator make sure you place brackets correctly.

\n

a) 

\n

As $x = \\var{n+2}$,

\n

substitute $\\var{n+2}$ into $\\var{x2}x^2 + \\var{x1}x + \\var{const}$.

\n

\\begin{align}
\\var{x2}x^2 + \\var{x1}x + \\var{const} &= \\var{x2} (\\var{n+2})^2 + \\var{x1}(\\var{n+2}) + \\var{const} \\\\
&=  \\simplify{{x2} ({n+2})^2 + {x1}({n+2}) + {const}}\\,.
\\end{align}

\n

b)

\n

As $y =  \\var{n}$,

\n

substitute $\\var{n}$ into $\\var{n+1}y^2-\\var{x2}y$.

\n

\\begin{align}
\\var{n+1}y^2-\\var{x2}y &=  \\var{n+1}(\\var{n})^2-\\var{x2}(\\var{n}) \\\\
&=  \\simplify{{n+1}({n})^2-{x2}({n})}\\,.
\\end{align}

\n

c)

\n

As we are given a temperature in degrees Celcius, $T_C = \\var{T_C}°C.$

\n

Substituting $T_C$ into $T_C = 1.8\\,T_C + 32$.

\n

\\begin{align}
T_F &=1.8\\, T_C+32 \\\\
&=1.8 (\\var{T_C}) + 32 \\\\
&= \\var{dpformat(1.8 {T_C} +32, 1)}\\,°F\\,.
\\end{align}

\n

\n

\n

", "variable_groups": [{"name": "Name variables", "variables": ["name", "name2", "pronoun"]}, {"name": "Temperature conversion", "variables": ["T_F", "T_C"]}], "rulesets": {}, "statement": "

Substitute the given values in the equations below.

", "name": "Substitute values into formulas", "parts": [{"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "minValue": "{x2}{n+2}^2+{x1}{n+2}+{const}", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "{x2}{n+2}^2+{x1}{n+2}+{const}", "mustBeReduced": false, "marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "

A curve is defined by a function $y=\\simplify{{x2}x^2 + {x1}x + {const}}$.

\n

What is the $y$ coordinate value of the point on the curve at $x=\\var{n+2}$?

\n

$y =$ [[0]]

"}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "minValue": "{n+1}{n}^2-{x2}{n}", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "{n+1}{n}^2-{x2}{n}", "mustBeReduced": false, "marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "

{name[n]} sells luxury yachts.

\n

The predicted sales of the luxury yachts are defined by

\n

\\[S=\\simplify{{n+1}y^2-{x2}y},\\]

\n

where
$S$ is the number of sales predicted this year;
$y$ is the number of luxury yachts sold in the previous year.

\n

{pronoun} sold {n} yachts in the previous year.

\n

Calculate $S$, the number of sales predicted this year.

\n

$S =$ [[0]]

"}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "minValue": "T_F", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "T_F", "mustBeReduced": false, "marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "

You can convert temperatures from degrees celsius to degrees fahrenheit by using the formula

\n

\\[T_F=1.8\\, T_C+32,\\]

\n

where
$T_F$ = Temperature in $°F$
$T_C$ = Temperature in $°C$.

\n

Convert $\\var{T_C}°C$ into degrees fahrenheit.

\n

$T_F =$ [[0]] $°F$  

"}], "tags": ["predicted value", "substitution", "Substitution", "taxonomy"], "preamble": {"css": "", "js": ""}, "functions": {}, "variables": {"pronoun": {"description": "

Defines the pronoun in the question.

", "definition": "if(mod(n,2)=0,\"He\",\"She\")", "group": "Name variables", "name": "pronoun", "templateType": "anything"}, "T_C": {"description": "

Creates a random integer value for the temperature in degrees celcius.

", "definition": "random(5..30#1)", "group": "Temperature conversion", "name": "T_C", "templateType": "anything"}, "name": {"description": "

List of names to randomise. Can change to any name inserted

", "definition": "[\"Andrew\",\"Susan\",\"Tom\",\"Geraldine\",\"Joshua\",\"Chantel\"]", "group": "Name variables", "name": "name", "templateType": "anything"}, "n": {"description": "

n is a random number between 0 and 4 that picks a name from {name} and then picks the next in the list for the other name such that there is always a male and a female in the question. 

", "definition": "random(0..4#1)", "group": "Ungrouped variables", "name": "n", "templateType": "anything"}, "sales": {"description": "", "definition": "(n+1)n^2-x2*n", "group": "Ungrouped variables", "name": "sales", "templateType": "anything"}, "const": {"description": "

The constant coefficient

", "definition": "random(1..100#1)", "group": "Ungrouped variables", "name": "const", "templateType": "anything"}, "T_F": {"description": "

Creates a value for Temperature in fahrenheit.

", "definition": "T_C*1.8+32", "group": "Temperature conversion", "name": "T_F", "templateType": "anything"}, "r": {"description": "

A random variable which will be inputted by the student.

", "definition": "random(1..50#0.1)", "group": "Ungrouped variables", "name": "r", "templateType": "anything"}, "x2": {"description": "

The x^2 coefficient

", "definition": "random(1..(n+1)*n)", "group": "Ungrouped variables", "name": "x2", "templateType": "anything"}, "name2": {"description": "

List of names to randomise. Can change to any name inserted

", "definition": "[\"Andrew\",\"Susan\",\"Tom\",\"Geraldine\",\"Joshua\",\"Chantel\"]", "group": "Name variables", "name": "name2", "templateType": "anything"}, "x1": {"description": "

The x coefficient

", "definition": "random(1..50)", "group": "Ungrouped variables", "name": "x1", "templateType": "anything"}}, "variablesTest": {"maxRuns": 100, "condition": ""}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}]}