// Numbas version: exam_results_page_options {"name": "Maria's copy of 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": [{"preamble": {"js": "", "css": ""}, "rulesets": {}, "advice": "
When inserting numbers into your calculator make sure you place brackets correctly.
\nAs $x = \\var{n+2}$,
\nsubstitute $\\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}
b)
\nAs $y = \\var{n}$,
\nsubstitute $\\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}
c)
As we are given a temperature in degrees Celcius, $T_C = \\var{T_C}°C.$
\nSubstituting $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}
A curve is defined by a function $y=\\simplify{{x2}x^2 + {x1}x + {const}}$.
\nWhat is the $y$ coordinate value of the point on the curve at $x=\\var{n+2}$?
\n$y =$ [[0]]
", "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "gaps": [{"variableReplacementStrategy": "originalfirst", "minValue": "{x2}{n+2}^2+{x1}{n+2}+{const}", "maxValue": "{x2}{n+2}^2+{x1}{n+2}+{const}", "mustBeReduced": false, "showFractionHint": true, "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "allowFractions": false, "mustBeReducedPC": 0, "correctAnswerFraction": false, "customName": "", "correctAnswerStyle": "plain", "type": "numberentry", "unitTests": [], "useCustomName": false, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "extendBaseMarkingAlgorithm": true}], "customName": "", "type": "gapfill", "unitTests": [], "useCustomName": false, "marks": 0, "extendBaseMarkingAlgorithm": true}, {"variableReplacementStrategy": "originalfirst", "sortAnswers": false, "prompt": "{name[n]} sells luxury yachts.
\nThe predicted sales of the luxury yachts are defined by
\n\\[S=\\simplify{{n+1}y^2-{x2}y},\\]
\nwhere
$S$ is the number of sales predicted this year;
$y$ is the number of luxury yachts sold in the previous year.
{pronoun} sold {n} yachts in the previous year.
\nCalculate $S$, the number of sales predicted this year.
\n$S =$ [[0]]
", "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "gaps": [{"variableReplacementStrategy": "originalfirst", "minValue": "{n+1}{n}^2-{x2}{n}", "maxValue": "{n+1}{n}^2-{x2}{n}", "mustBeReduced": false, "showFractionHint": true, "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "allowFractions": false, "mustBeReducedPC": 0, "correctAnswerFraction": false, "customName": "", "correctAnswerStyle": "plain", "type": "numberentry", "unitTests": [], "useCustomName": false, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "extendBaseMarkingAlgorithm": true}], "customName": "", "type": "gapfill", "unitTests": [], "useCustomName": false, "marks": 0, "extendBaseMarkingAlgorithm": true}, {"variableReplacementStrategy": "originalfirst", "sortAnswers": false, "prompt": "You can convert temperatures from degrees celsius to degrees fahrenheit by using the formula
\n\\[T_F=1.8\\, T_C+32,\\]
\nwhere
$T_F$ = Temperature in $°F$
$T_C$ = Temperature in $°C$.
Convert $\\var{T_C}°C$ into degrees fahrenheit.
\n$T_F =$ [[0]] $°F$
", "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "gaps": [{"variableReplacementStrategy": "originalfirst", "minValue": "T_F", "maxValue": "T_F", "mustBeReduced": false, "showFractionHint": true, "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "allowFractions": false, "mustBeReducedPC": 0, "correctAnswerFraction": false, "customName": "", "correctAnswerStyle": "plain", "type": "numberentry", "unitTests": [], "useCustomName": false, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "extendBaseMarkingAlgorithm": true}], "customName": "", "type": "gapfill", "unitTests": [], "useCustomName": false, "marks": 0, "extendBaseMarkingAlgorithm": true}], "extensions": ["geogebra"], "statement": "Substitute the given values in the equations below.
", "variables": {"sales": {"description": "", "definition": "(n+1)n^2-x2*n", "group": "Ungrouped variables", "templateType": "anything", "name": "sales"}, "name2": {"description": "List of names to randomise. Can change to any name inserted
", "definition": "[\"Andrew\",\"Susan\",\"Tom\",\"Geraldine\",\"Joshua\",\"Chantel\"]", "group": "Name variables", "templateType": "anything", "name": "name2"}, "T_C": {"description": "Creates a random integer value for the temperature in degrees celcius.
", "definition": "random(10..25#1)", "group": "Temperature conversion", "templateType": "anything", "name": "T_C"}, "const": {"description": "The constant coefficient
", "definition": "random(1..10#1)", "group": "Ungrouped variables", "templateType": "anything", "name": "const"}, "name": {"description": "List of names to randomise. Can change to any name inserted
", "definition": "[\"Andrew\",\"Susan\",\"Tom\",\"Geraldine\",\"Joshua\",\"Chantel\"]", "group": "Name variables", "templateType": "anything", "name": "name"}, "pronoun": {"description": "Defines the pronoun in the question.
", "definition": "if(mod(n,2)=0,\"He\",\"She\")", "group": "Name variables", "templateType": "anything", "name": "pronoun"}, "T_F": {"description": "Creates a value for Temperature in fahrenheit.
", "definition": "T_C*1.8+32", "group": "Temperature conversion", "templateType": "anything", "name": "T_F"}, "r": {"description": "A random variable which will be inputted by the student.
", "definition": "random(1..50#0.1)", "group": "Ungrouped variables", "templateType": "anything", "name": "r"}, "x2": {"description": "The x^2 coefficient
", "definition": "random(1..(n+1)*n)", "group": "Ungrouped variables", "templateType": "anything", "name": "x2"}, "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", "templateType": "anything", "name": "n"}, "x1": {"description": "The x coefficient
", "definition": "random(1..5)", "group": "Ungrouped variables", "templateType": "anything", "name": "x1"}}, "metadata": {"description": "Substitute given values into formulas.
", "licence": "Creative Commons Attribution 4.0 International"}, "name": "Maria's copy of Substitute values into formulas", "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "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/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "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/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}