// Numbas version: exam_results_page_options {"name": "Creating formulas", "metadata": {"description": "

A quick practice set of problems for education students to take in preparation for their numeracy test.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], []], "questions": [{"name": "Formulas (dots)", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Daniel Sutherland", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/16947/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Consider the various stages of dots in the following diagram:

\n

{GGB_DIAGRAM}

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"ggb_diagram": {"name": "ggb_diagram", "group": "Ungrouped variables", "definition": "geogebra_applet('ac6nz8x6',[m: step, b: start])", "description": "", "templateType": "anything", "can_override": false}, "start": {"name": "start", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "step": {"name": "step", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "stage": {"name": "stage", "group": "Ungrouped variables", "definition": "random(5..20)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["ggb_diagram", "start", "step", "stage"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Identify the formula", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Think about how many dots are present at each stage of the diagram, and complete the following formula:

\n

Number of dots in a given stage = [[0]] $+$ (stage number) $\\times$ [[1]].

", "stepsPenalty": "2", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Notice we start with $\\var{start}$ dots. From that stage on, we take the dots from the previous stage and add $\\var{step}$ dots. Since we are repeatedly adding $\\var{step}$ dots, at each stage we can think of adding multiples of $\\var{step}$ to $\\var{start}$. 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
StageNumber of dots
$0$$\\var{start}$
$1$$\\var{start}$ plus one lot of $\\var{step}$
$2$$\\var{start}$ plus two lots of $\\var{step}$
$3$$\\var{start}$ plus three lots of $\\var{step}$
$\\vdots$$\\vdots$
$n$$\\var{start}$ plus $n$ lots of $\\var{step}$
\n

\n

So in general we can say,

\n

Number of dots in a given stage $=$ $\\var{start}$ $+$ (stage number) $\\times$ $\\var{step}$.

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "start", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "start", "maxValue": "start", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "step", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "step", "maxValue": "step", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "numberentry", "useCustomName": true, "customName": "Use the formula", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Hence, predict the number of dots in the diagram for Stage {stage}:

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

We know that

\n

Number of dots in a given stage $=$ $\\var{start}$ $+$ (stage number) $\\times$ $\\var{step}$,

\n

so at stage {stage}:

\n

Number of dots in stage {stage} is $\\var{start}+\\var{stage}\\times\\var{step}=\\var{start+stage*step}$.

"}], "minValue": "start+stage*step", "maxValue": "start+stage*step", "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"}, {"name": "Formulas (matchsticks)", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Daniel Sutherland", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/16947/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Consider the various stages of matchsticks in the following diagram:

\n

{GGB_DIAGRAM}

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"ggb_diagram": {"name": "ggb_diagram", "group": "Ungrouped variables", "definition": "geogebra_applet('rknzd4dq',[n: boxes])", "description": "", "templateType": "anything", "can_override": false}, "stage": {"name": "stage", "group": "Ungrouped variables", "definition": "random(5..20)", "description": "", "templateType": "anything", "can_override": false}, "boxes": {"name": "boxes", "group": "Ungrouped variables", "definition": "random(1..6)", "description": "", "templateType": "anything", "can_override": false}, "start": {"name": "start", "group": "Ungrouped variables", "definition": "1+3*boxes", "description": "", "templateType": "anything", "can_override": false}, "step": {"name": "step", "group": "Ungrouped variables", "definition": "1+2*boxes", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["ggb_diagram", "stage", "boxes", "start", "step"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Identify the formula", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Think about how many matchsticks are present at each stage of the diagram, and complete the following formula:

\n

Number of matchsticks in a given stage = [[0]] $+$ (stage number) $\\times$ [[1]].

", "stepsPenalty": "2", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Notice we start with $\\var{start}$ matchsticks. From that stage on, we take the matchsticks from the previous stage and add $\\var{step}$ matchsticks. Since we are repeatedly adding $\\var{step}$ matchsticks, at each stage we can think of adding multiples of $\\var{step}$ to $\\var{start}$. 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
StageNumber of matchsticks
$0$$\\var{start}$
$1$$\\var{start}$ plus one lot of $\\var{step}$
$2$$\\var{start}$ plus two lots of $\\var{step}$
$3$$\\var{start}$ plus three lots of $\\var{step}$
$\\vdots$$\\vdots$
$n$$\\var{start}$ plus $n$ lots of $\\var{step}$
\n

\n

So in general we can say,

\n

Number of matchsticks in a given stage $=$ $\\var{start}$ $+$ (stage number) $\\times$ $\\var{step}$.

"}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "start", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "start", "maxValue": "start", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "step", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "step", "maxValue": "step", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "numberentry", "useCustomName": true, "customName": "Use the formula", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Hence, predict the number of matchsticks in the diagram for Stage {stage}:

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

We know that

\n

Number of matchsticks in a given stage $=$ $\\var{start}$ $+$ (stage number) $\\times$ $\\var{step}$,

\n

so at stage {stage}:

\n

Number of matchsticks in stage {stage} is $\\var{start}+\\var{stage}\\times\\var{step}=\\var{start+stage*step}$.

"}], "minValue": "start+stage*step", "maxValue": "start+stage*step", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Creating formulas: spreadsheet cost", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cost1": {"name": "cost1", "group": "Ungrouped variables", "definition": "list[0][1]", "description": "", "templateType": "anything", "can_override": false}, "cost2": {"name": "cost2", "group": "Ungrouped variables", "definition": "list[1][1]", "description": "", "templateType": "anything", "can_override": false}, "cost3": {"name": "cost3", "group": "Ungrouped variables", "definition": "list[2][1]", "description": "", "templateType": "anything", "can_override": false}, "item1": {"name": "item1", "group": "Ungrouped variables", "definition": "list[0][0]", "description": "", "templateType": "anything", "can_override": false}, "item2": {"name": "item2", "group": "Ungrouped variables", "definition": "list[1][0]", "description": "", "templateType": "anything", "can_override": false}, "item3": {"name": "item3", "group": "Ungrouped variables", "definition": "list[2][0]", "description": "", "templateType": "anything", "can_override": false}, "list": {"name": "list", "group": "Ungrouped variables", "definition": "[[\"15MM RED GRANITE\", random(65..75)],\n[\"30MM ORNAMENTAL\", random(65..75)],\n[\"TENNIS COURT GRAVEL\", random(65..75)],\n[\"BLENDED SANDY TOPSOIL\", random(49..55#0.25)],\n[\"WASHED RIVER STONE 10MM\", random(75..80#0.25)],\n[\"WASHED RIVER STONE 20MM\", random(75..80#0.5)], \n[\"VENM (VIRGIN EXCAVATED NATURAL MATERIAL)\", random(15..20)],\n [\"THERMAL SAND\", random(67..70#0.25)],\n [\"SUB BASE GRAVEL\", random(30..40)]\n][0..3]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["cost1", "cost2", "cost3", "item1", "item2", "item3", "list"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A spreadsheet is used to find the total cost of an order. The quantity of each material ordered is entered into cells B2, B4 and B6. The spreadsheet then calculates the total cost in cell B9.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ABCD
1Material\n

Quantity (cubic metres)

\n
Cost 
per cubic metres ($)
2{item1}$\\var{cost1}$
3
4{item2}$\\var{cost2}$
5
6{item3}$\\var{cost3}$
7
8
9Total cost ($)
\n

About spreadsheets:
Each cell is referred to by the column letter and row number.
For example, REFER TO A CELL.
The symbol * stands for multiplication.
The symbol / stands for division.

\n

\n

Which formula can be used to find the total cost in cell B9?

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Consider the first material. Each cubic metre of it costs $\\$\\var{cost1}$. If we order 2 cubic metres, it will cost $2\\times\\$\\var{cost1}$. If we order 3 cubic metres, it will cost $3\\times\\$\\var{cost1}$. In general, the cost will be \"the number of cubic metres\" multiplied by \"the cost per cubic metre\".

\n

The same can be said about the other materials. 

\n

We can then add up those three costs.

\n

Therefore, in cell B9 we would input

\n

 = B2*C2+B4*C4+B6*C6

"}], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": [" = B2*C2+C3*D3+D4*E4", " = (B2+B4+B6)*(C2+C4+C6)", " = C2+C4+C6", " = B2*C2+B4*C4+B6*C6", "I'm not sure"], "matrix": [0, 0, 0, "1", 0], "distractors": ["These are not the cells you are looking for", "", "This would be the cost of one cubic metre of each", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Creating formula: Cost of phone calls", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"list": {"name": "list", "group": "Ungrouped variables", "definition": "shuffle([\n [\"BANGLADESH\",0.40, 1.96, 2.26], \n [\"HAITI\", 0.40, 2.93, 2.93],\n [\"SWITZERLAND\", 0.40, 0.75, 1.31],\n [\"FRANCE\", 0.40, 0.75, 1.31],\n [\"BRAZIL\", 0.40, 1.31, 1.58],\n [\"ARGENTINA\", 0.40 ,1.31, 1.58],\n [\"IRAN\", 0.40 ,1.39, 1.61],\n [\"GERMANY\", 0.40, 0.75, 1.31],\n [\"UNITED KINGDOM\", 0.40, 0.55 ,1.13],\n [\"NEW ZEALAND\", 0.40 , 0.44, 1.03],\n [\"KOREA REPUBLIC OF\", 0.40, 1.01, 1.31],\n [\"JAPAN\", 0.40, 0.75, 1.31],\n [\"SINGAPORE\", 0.40, 0.69 ,1.04],\n [\"BARBADOS\", 0.40, 1.96, 1.97],\n[\"HAWAII\", 0.40, 0.44, 0.45],\n[\"IRAQ\", 0.40, 2.32, 2.33],\n[\"CANADA\", 0.40, 0.64, 0.65],\n[\"SPAIN\", 0.40, 2.52 ,2.53],\n[\"COSTA RICA\", 0.40, 2.10, 2.12],\n[\"ANTARCTICA\", 0.40, 0.81, 0.82]\n])[0..4]", "description": "

https://www.telstra.com.au/mobile-phones/calling-overseas-from-australia

", "templateType": "anything", "can_override": false}, "type": {"name": "type", "group": "Ungrouped variables", "definition": "if(type_seed=2, 'fixed line', 'international (non-roaming) mobile')", "description": "", "templateType": "anything", "can_override": false}, "country": {"name": "country", "group": "Ungrouped variables", "definition": "random(list)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "len(country[0])+1", "description": "", "templateType": "anything", "can_override": false}, "type_seed": {"name": "type_seed", "group": "Ungrouped variables", "definition": "random(2,3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["list", "country", "type_seed", "type", "n"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A phone company charges the following rates for the following destinations.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DestinationConnection Fee
(inc GST)
Voice Call Rates
(per minute)
to Fixed Line
(inc GST)
to an International
(non-roaming) Mobile
(inc GST)
{list[0][0]}\\${list[0][1]}\\${list[0][2]}\\${list[0][3]}
{list[1][0]}\\${list[1][1]}\\${list[1][2]}\\${list[1][3]}
{list[2][0]}\\${list[2][1]}\\${list[2][2]}\\${list[2][3]}
{list[3][0]}\\${list[3][1]}\\${list[3][2]}\\${list[3][3]}
\n

\n

In the field below, enter the formula for the cost, $C$, of a phone call (in dollars) to an {type} in {country[0][0]+lower(country[0][1..n])} for $m$ minutes. 

\n

\n

[[0]]

\n

Note 1: The warning \"Not enough arguments for operation ...\" simply means you haven't finished yet! 

\n

Note 2: You shouldn't leave off the first zero of a decimal

\n

Note 3: You can use * for multiplication

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

You need to make sense of the table.

\n

Find the row that corresponds to {country[0][0]+lower(country[0][1..n])}. Notice that there is a connection fee of $\\$\\var{country[1]}$.

\n

Find the column for the type of phone to be rung, i.e. {type}. The cell at the intersection of the row and column of interest is the charge per minute, in your case $\\$\\var{country[type_seed]}$ per minute. Since for each minute, we get another $\\$\\var{country[type_seed]}$ charge, it should make sense that we multiply the charge per minute and the number of minutes ($m$).

\n

\n

Generally, we would write something like

\n

$C=\\var{country[1]}+\\var{country[type_seed]}m$.

\n

Entering into a computer, we would generally write something like 

\n

$C=\\var{country[1]}+\\var{country[type_seed]}^* m$.

"}], "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "C={country[1]}+{country[type_seed]}m", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "m", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Creating formulas: taxi fare", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

A taxi fare is made up of different charges.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"peak_b": {"name": "peak_b", "group": "part b", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}, "night_b": {"name": "night_b", "group": "part b", "definition": "if(peak_b=1, 1, random(0,1))", "description": "

in urban, peak is always night

", "templateType": "anything", "can_override": false}, "second_distance_rate": {"name": "second_distance_rate", "group": "part a", "definition": "if(type_a=0,3.23, 3.85)", "description": "\n

Here are the maximum amounts that rank and hail taxi's can charge when travelling in country areas.

\n", "templateType": "anything", "can_override": false}, "first_distance_rate": {"name": "first_distance_rate", "group": "part a", "definition": "if(type_a=0,2.36, 2.81)", "description": "", "templateType": "anything", "can_override": false}, "mess_a": {"name": "mess_a", "group": "part a", "definition": "random(0,0,0,0,1)", "description": "", "templateType": "anything", "can_override": false}, "type_a": {"name": "type_a", "group": "part a", "definition": "random(0,1,2)", "description": "

0 = standard

\n

1 = night

\n

2 = holiday

", "templateType": "anything", "can_override": false}, "mess_b": {"name": "mess_b", "group": "part b", "definition": "if(night_b=1, random(0,1),0)", "description": "", "templateType": "anything", "can_override": false}, "distance_rate_b": {"name": "distance_rate_b", "group": "part b", "definition": "if(night_b=0, 2.29, 2.73)", "description": "", "templateType": "anything", "can_override": false}, "cleaning_fee_b": {"name": "cleaning_fee_b", "group": "part b", "definition": "if(mess_b=0,0,random(60,90,120))", "description": "", "templateType": "anything", "can_override": false}, "cleaning_fee_a": {"name": "cleaning_fee_a", "group": "part a", "definition": "if(mess_a=0,0,random(60,90,120))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "part a", "variables": ["type_a", "first_distance_rate", "second_distance_rate", "mess_a", "cleaning_fee_a"]}, {"name": "part b", "variables": ["peak_b", "night_b", "mess_b", "distance_rate_b", "cleaning_fee_b"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Here are the amounts a rank and hail taxi can charge when travelling in urban areas.

\n\n\n\n\n\n\n
\n
    \n
  • Hire charge: \\$3.60
  • \n
  • Peak time hire charge: \\$2.50 (in addition to the hire charge, 10 pm – 6 am on Fridays, Saturdays, and evenings prior to Public Holidays), 
  • \n
  • Distance rate: \\$2.29 per kilometre
  • \n
  • Night distance rate: \\$2.73 per kilometre (trips between 10 pm – 6 am)
  • \n
  • Waiting time: \\$56.68 per hour while vehicle speed is less than 26 km/h
  • \n
  • Cleaning fee: if you dirty the taxi, you may be charged up to \\$120
  • \n
  • Passenger Service Levy: \\$1.32 will be added to your fare if the service provider elects to pass on the cost of the levy to their passengers.
  • \n
\n
\n

\n

In the field below, enter the formula for the cost in dollars, $C$, of

\n\n

[[0]]

\n

Note: You can use * for multiplication and / for division.

\n

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The cost will be made up of a hire charge of $\\$3.60$, an additional peak time hire charge of $\\$2.50$, a cleaning fee of $\\$\\var{cleaning_fee_b}$, a passenger levy of $\\$1.32$, a cost of $\\var{distance_rate_b}$ for each kilometre and a cost of $\\$56.68$ for each hour. 

\n

Note the number of hours of waiting time is $\\frac{W}{60}$.

\n

Therefore, the formula can be written as

\n

$C=\\simplify[all]{3.60+1.32+{peak_b}*2.5+{distance_rate_b}*D+W/60*56.68+{cleaning_fee_b}}$

"}], "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "C=3.60+1.32+{peak_b}*2.5+{distance_rate_b}*D+W/60*56.68+{cleaning_fee_b}}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "d", "value": ""}, {"name": "w", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Here are the amounts a rank and hail taxi can charge when travelling in country areas.

\n\n\n\n\n\n\n
\n
    \n
  • Hire charge: \\$4.10
  • \n
  • Distance rate: \\$2.36 per kilometre for the first 12km, then \\$3.23 per kilometre thereafter
  • \n
  • Night distance rate: \\$2.81 per kilometre for the first 12km, then \\$3.85 per kilometre thereafter (10 pm to 6 am)
  • \n
  • Holiday distance rate: \\$2.81 per kilometre for the first 12km, then \\$3.85 per kilometre thereafter (6 am to 10 pm on Sundays and Public Holidays.)
  • \n
  • Waiting time: \\$57.65 per hour while vehicle speed is less than 26 km/h
  • \n
  • Cleaning fee: if you dirty the taxi, you may be charged up to \\$120
  • \n
  • Passenger Service Levy: \\$1.32 will be added to your fare if the service provider elects to pass on the cost of the levy to their passengers.
  • \n
\n
\n

\n

In the field below, enter the formula for the cost in dollars, $C$, of

\n\n

[[0]]

\n

Note: You can use * for multiplication and / for division.

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The cost will be made up of a hire charge of $\\$4.10$, a cleaning fee of $\\$\\var{cleaning_fee_a}$, a passenger levy of $\\$1.32$, a cost of $\\$\\var{first_distance_rate}$ for each kilometre, and a cost of $\\$57.65$ for each hour. 

\n

Note the number of hours of waiting time is $\\frac{W}{60}$.

\n

Therefore, the formula can be written as

\n

$C=\\simplify[all]{4.1+{first_distance_rate}*D+W/60*57.65+1.32+{cleaning_fee_a}}$

"}], "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "C=4.1+{first_distance_rate}*D+W/60*57.65+1.32+{cleaning_fee_a}", "answerSimplification": "all", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "d", "value": ""}, {"name": "w", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

In the field below, enter the formula for the cost in dollars, $C$, of the same scenario as part b above except the distance $D$ is now greater than $12$ km.

\n

[[0]]

\n

Note: You can use * for multiplication and / for division.

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The cost will be made up of a hire charge of $\\$4.10$, a cleaning fee of $\\$\\var{cleaning_fee_a}$, a passenger levy of $\\$1.32$, a cost of $\\$\\var{first_distance_rate}$ for $12$ kilometres, a cost of $\\$\\var{second_distance_rate}$ for the remaining kilometres, and a cost of $\\$57.65$ for each hour. 

\n

Note the number of hours of waiting time is $\\frac{W}{60}$.

\n

Note the remaining kilometres would be $D-12$.

\n

Therefore, the formula can be written as

\n

$C=\\simplify[all]{4.1+{first_distance_rate}*12+{second_distance_rate}*(D-12)+W/60*57.65+1.32+{cleaning_fee_a}}$

"}], "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "C=4.1+{first_distance_rate}*12+{second_distance_rate}*(D-12)+W/60*57.65+1.32+{cleaning_fee_a}", "answerSimplification": "all", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "d", "value": ""}, {"name": "w", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Creating formulas: Petrol cost of driving a distance", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cpl": {"name": "cpl", "group": "Ungrouped variables", "definition": "190+random(-25..25#0.1)", "description": "", "templateType": "anything", "can_override": false}, "distance": {"name": "distance", "group": "Ungrouped variables", "definition": "random(100..600#100)", "description": "", "templateType": "anything", "can_override": false}, "litres": {"name": "litres", "group": "Ungrouped variables", "definition": "litres_per_100km*distance*0.01", "description": "", "templateType": "anything", "can_override": false}, "litres_per_100km": {"name": "litres_per_100km", "group": "Ungrouped variables", "definition": "random(4..14#0.1)", "description": "", "templateType": "anything", "can_override": false}, "swap": {"name": "swap", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["cpl", "distance", "litres", "litres_per_100km", "swap"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A certain vehicle uses $\\var{litres}$ L of petrol to drive $\\var{distance}$ km. If petrol costs $\\var{cpl}$ cents per litre. Which formula would estimate the cost $C$, in dollars, of driving $d$ kilometres?  

\n

Suppose petrol costs $\\var{cpl}$ c/L and a certain vehicle can drive $\\var{distance}$ km using $\\var{litres}$ L of petrol.

\n

Which formula would estimate the cost $C$, in dollars, of driving $d$ kilometres?  

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A certain vehicle uses $\\var{litres}$ L of petrol to drive $\\var{distance}$ km. If petrol costs $\\var{cpl}$ cents per litre. Which formula would estimate the cost $C$, in dollars, of driving $d$ kilometres? 

\n

We want the cost of driving $d$ kilometres.

\n

If we find the cost of driving $1$ kilometre, then we could multiply that by $d$, to get what we want.

\n

Since the vehicle uses $\\var{litres}$ L to drive $\\var{distance}$ km, we can divide both numbers by $\\var{distance}$ to find the vehicle uses $\\frac{\\var{litres}}{\\var{distance}}$ L to drive $1$ km. That is, it gets $\\frac{\\var{litres}}{\\var{distance}}$ L/km.

\n

Note, at this point, we could write

\n

$\\text{Petrol usage (in litres)} = \\frac{\\var{litres}}{\\var{distance}} \\times d$.

\n

We want the cost, so we could multiply the petrol usage (in litres) by the cost per litre

\n

$\\text{Cost (in cents)} = \\var{cpl}\\times \\frac{\\var{litres}}{\\var{distance}} \\times d$,

\n

but this would be in cents, not dollars! So we divide the cost per litre by $100$ so that it is cost (in dollars) per litre, and we can write

\n

$C = \\frac{\\var{cpl}}{100} \\times \\frac{\\var{litres}}{\\var{distance}} d$.

"}], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["

$C = \\frac{\\var{cpl}}{100} \\times \\frac{\\var{litres}}{\\var{distance}} \\times d$

", "

$C = \\var{cpl}\\times \\frac{\\var{litres}}{\\var{distance}} \\times d$

", "

$C = \\frac{\\var{cpl}}{100} \\times \\frac{\\var{distance}}{\\var{litres}} \\times d$

", "$C = \\var{cpl}\\times \\frac{\\var{distance}}{\\var{litres}} \\times d$", "I'm not sure"], "matrix": ["1", 0, 0, 0, 0], "distractors": ["", "This would result in the cost in cents.", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": false, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": "", "allowAttemptDownload": false, "downloadEncryptionKey": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "end_message": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "extensions": ["geogebra"], "custom_part_types": [], "resources": []}