// Numbas version: exam_results_page_options {"name": "Caitr\u00edona's copy of Scientific notation 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"question_groups": [{"questions": [], "pickingStrategy": "all-ordered", "pickQuestions": 0, "name": ""}], "showQuestionGroupNames": false, "variables": {"pow1": {"group": "Ungrouped variables", "definition": "random(2..6)", "templateType": "anything", "name": "pow1", "description": ""}, "pow2": {"group": "Ungrouped variables", "definition": "random(4..8)", "templateType": "anything", "name": "pow2", "description": ""}, "dec2": {"group": "Ungrouped variables", "definition": "random(1.1..9.9#0.001)", "templateType": "anything", "name": "dec2", "description": ""}, "q2": {"group": "Ungrouped variables", "definition": "precround(dec2*10^pow2,0)", "templateType": "anything", "name": "q2", "description": ""}, "dec1": {"group": "Ungrouped variables", "definition": "random(1.1..9.9#0.01)", "templateType": "anything", "name": "dec1", "description": ""}, "q1": {"group": "Ungrouped variables", "definition": "precround(dec1*10^pow1,0)", "templateType": "anything", "name": "q1", "description": ""}}, "metadata": {"description": "", "notes": "

I tried pattern matching, I suck at javascript, I couldn't get it to check it was in the right form, nor check each part of the answer separately using something like 'm_all((m_all(??))*10^m_all(??))' or '(m_all(??));dec*10^m_all(??);power'

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "name": "Caitr\u00edona's copy of Scientific notation 1", "advice": "", "functions": {"spacenumber": {"definition": "var parts=n.toString().split(\".\");\n if(parts[1] && parts[1].length<2) {\n parts[1]+='0';\n }\n return parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \") + (parts[1] ? \", \" + parts[1] : \"\");", "language": "javascript", "parameters": [["n", "number"]], "type": "string"}}, "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["dec1", "pow1", "q1", "dec2", "pow2", "q2"], "parts": [{"gaps": [{"scripts": {}, "minValue": "{dec1}", "allowFractions": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "correctAnswerFraction": false, "maxValue": "{dec1}", "showPrecisionHint": false, "showCorrectAnswer": false}, {"scripts": {}, "minValue": "{pow1}", "allowFractions": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "correctAnswerFraction": false, "maxValue": "{pow1}", "showPrecisionHint": false, "showCorrectAnswer": false}], "stepsPenalty": "1", "variableReplacements": [], "prompt": "

{spacenumber(q1)} = [[0]]$\\times 10$ [[1]]

", "variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacements": [], "prompt": "

A number is in scientific notation if it is written as a decimal multiplied by some power of 10, where the decimal has exactly one digit in front of the decimal place. For example:

\n

\\[1.234\\times 10^6, \\quad \\text{and} \\quad 3.01\\times 10^{-3}\\] 

\n

are both in scientific notation.

\n

\n
\n

Suppose we have the number $53\\,600\\,000$. In scientific notation, this number would start with $5.36$ since we only want one digit in front of the decimal point. So the decimal point was to the right of the last digit here $53\\,600\\,000$ and needs to move to between the $5$ and the $3$ here $5.36$. Count the places that the decimal point must jump between and you get $7$ places. That is,

\n

\n

\\[53\\,600\\,000=5.36\\times 10^7\\]

\n

\n

We have a positive seven as the power because we need to make the number $5.36$ bigger to get to $53\\,600\\,000$

", "variableReplacementStrategy": "originalfirst", "marks": 0, "scripts": {}, "type": "information", "showCorrectAnswer": true}], "marks": 0, "scripts": {}, "type": "gapfill", "showCorrectAnswer": true}, {"gaps": [{"scripts": {}, "minValue": "{dec2}", "allowFractions": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "correctAnswerFraction": false, "maxValue": "{dec2}", "showPrecisionHint": false, "showCorrectAnswer": false}, {"scripts": {}, "minValue": "{pow2}", "allowFractions": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "correctAnswerFraction": false, "maxValue": "{pow2}", "showPrecisionHint": false, "showCorrectAnswer": false}], "stepsPenalty": "1", "variableReplacements": [], "prompt": "

{spacenumber(q2)} = [[0]]$\\times 10$ [[1]] 

", "variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacements": [], "prompt": "

A number is in scientific notation if it is written as a decimal multiplied by some power of 10, where the decimal has exactly one digit in front of the decimal place. For example:

\n

\\[1.234\\times 10^6, \\quad \\text{and} \\quad 3.01\\times 10^{-3}\\] 

\n

are both in scientific notation.

\n

\n
\n

Suppose we have the number $53\\,600\\,000$. In scientific notation, this number would start with $5.36$ since we only want one digit in front of the decimal point. So the decimal point was to the right of the last digit here $53\\,600\\,000$ and needs to move to between the $5$ and the $3$ here $5.36$. Count the places that the decimal point must jump between and you get $7$ places. That is,

\n

\n

\\[53\\,600\\,000=5.36\\times 10^7\\]

\n

\n

We have a positive seven as the power because we need to make the number $5.36$ bigger to get to $53\\,600\\,000$

", "variableReplacementStrategy": "originalfirst", "marks": 0, "scripts": {}, "type": "information", "showCorrectAnswer": true}], "marks": 0, "scripts": {}, "type": "gapfill", "showCorrectAnswer": true}], "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "tags": ["converting", "scientific notation", "standard form"], "statement": "

Write the following numbers in scientific notation.

", "type": "question", "contributors": [{"name": "Caitr\u00edona N\u00ed Sh\u00e9", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1572/"}]}]}], "contributors": [{"name": "Caitr\u00edona N\u00ed Sh\u00e9", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1572/"}]}