// Numbas version: exam_results_page_options {"name": "Calculate Relative Atomic Mass", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate Relative Atomic Mass", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Calculate the relative atomic mass of {element_names[index]}.

\n

The relative abundances of each of the isotopes of {element_names[index]} are listed below.

\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
Mass/Charge RatioRelative Abundance
{ram_dictionary[element_names[index]][\"mcr\"][0]}{ram_dictionary[element_names[index]][\"ra\"][0]}{ram_dictionary[element_names[index]][\"suffix\"][0]}
{ram_dictionary[element_names[index]][\"mcr\"][1]}{ram_dictionary[element_names[index]][\"ra\"][1]}{ram_dictionary[element_names[index]][\"suffix\"][1]}
{ram_dictionary[element_names[index]][\"mcr\"][2]}{ram_dictionary[element_names[index]][\"ra\"][2]}{ram_dictionary[element_names[index]][\"suffix\"][2]}
{ram_dictionary[element_names[index]][\"mcr\"][3]}{ram_dictionary[element_names[index]][\"ra\"][3]}{ram_dictionary[element_names[index]][\"suffix\"][3]}
{ram_dictionary[element_names[index]][\"mcr\"][4]}{ram_dictionary[element_names[index]][\"ra\"][4]}{ram_dictionary[element_names[index]][\"suffix\"][4]}
\n

Give your answer to one decimal place.

", "advice": "

This is computed as a weighted average of the individual masses, based upon the relative abundances:

\n

{solution_dictionary[element_names[index]]} = {round1ans} (1 decimal place).

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"rational_answers": {"name": "rational_answers", "group": "Ungrouped variables", "definition": "[\"germanium\": 19921/274, \"magnesium\": 24327/1000, \"silicon\": 152435/5423, \"gallium\": 17449/250]", "description": "", "templateType": "anything", "can_override": false}, "round1ans": {"name": "round1ans", "group": "Ungrouped variables", "definition": "precround({rational_answers}[{element_names}[{index}]], 1)", "description": "", "templateType": "anything", "can_override": false}, "round0ans": {"name": "round0ans", "group": "Ungrouped variables", "definition": "precround({rational_answers}[{element_names}[{index}]], 0)", "description": "", "templateType": "anything", "can_override": false}, "element_names": {"name": "element_names", "group": "Ungrouped variables", "definition": "[\"germanium\", \"magnesium\", \"silicon\", \"gallium\"]", "description": "", "templateType": "anything", "can_override": false}, "ram_dictionary": {"name": "ram_dictionary", "group": "Ungrouped variables", "definition": "[\"germanium\": [\"mcr\": [70, 72, 73, 74, 76], \"ra\": [56.4, 75.1, 21.4, 100, 21.1], \"suffix\": [\"\", \"\", \"\", \"\", \"\"]], \"magnesium\": [\"mcr\": [24, 25, 26, \"\", \"\"], \"ra\": [78.6, 10.1, 11.3, \"\", \"\"], \"suffix\": [\"%\", \"%\", \"%\", \"\", \"\"]], \"silicon\": [\"mcr\": [28, 29, 30, \"\", \"\"], \"ra\": [100, 5.1, 3.36, \"\", \"\"], \"suffix\": [\"\", \"\", \"\", \"\", \"\"]], \"gallium\": [\"mcr\": [69, 71, \"\", \"\", \"\"], \"ra\": [60.2, 39.8, \"\", \"\", \"\"], \"suffix\": [\"%\", \"%\", \"\", \"\", \"\"]]]", "description": "", "templateType": "anything", "can_override": false}, "index": {"name": "index", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything", "can_override": false}, "solution_dictionary": {"name": "solution_dictionary", "group": "Ungrouped variables", "definition": "[\"germanium\": \"(56.4 \u00d7 70 + 75.1 \u00d7 72 + 21.4 \u00d7 73 + 100 \u00d7 74 + 21.1 \u00d7 76) \u00f7 (56.4 + 75.1 + 21.4 + 100 + 21.1)\", \"magnesium\": \"(78.6 \u00d7 24 + 10.1 \u00d7 25 + 11.3 \u00d7 26) \u00f7 100\", \"silicon\": \"(100 \u00d7 28 + 5.1 \u00d7 29 + 3.36 \u00d7 30) \u00f7 (100 + 5.1 + 3.36)\", \"gallium\": \"(60.2 \u00d7 69 + 39.8 \u00d7 71) \u00f7 100\"]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["index", "element_names", "ram_dictionary", "rational_answers", "round1ans", "round0ans", "solution_dictionary"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Answer 1 Decimal Place", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{rational_answers}[{element_names}[{index}]]", "maxValue": "{rational_answers}[{element_names}[{index}]]", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "1", "precisionPartialCredit": "100", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Daniel Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18158/"}]}]}], "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Daniel Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18158/"}]}