// Numbas version: finer_feedback_settings {"name": "Input 2 PSY", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"tol": {"templateType": "anything", "group": "Ungrouped variables", "definition": "0.01", "description": "", "name": "tol"}, "ans1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(a1/b1,2)", "description": "", "name": "ans1"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..9)", "description": "", "name": "b"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "name": "c"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(7,11,13)", "description": "", "name": "b1"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "name": "a"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2,3,4,5,6,8,9,10,12)", "description": "", "name": "a1"}}, "ungrouped_variables": ["a", "c", "b", "ans1", "a1", "b1", "tol"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Input 2 PSY", "functions": {}, "showQuestionGroupNames": false, "parts": [{"scripts": {}, "gaps": [{"showCorrectAnswer": true, "allowFractions": false, "scripts": {}, "type": "numberentry", "maxValue": "a*b+c", "minValue": "a*b+c", "correctAnswerFraction": false, "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "prompt": "\n
Find the result of this calculation: (This is an example of a randomised question - the next time you use this example you will probably see a different calculation to do):
\n$\\var{a}\\times\\var{b}+\\var{c}=\\;$[[0]]
\nYou have to input a whole number - it could be in decimal form - if the answer was 2 then you could input 2 or 2.0 - try both forms.
\n ", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"answer": "{a*b+c}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"message": "Do not enter your answer as a decimal. Enter as a whole number without the decimal point.
", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "\nSometimes I could force you to enter a whole number not in decimal form. But this should be no problem as you will be warned as below.
\nEnter the result of this calculation, but enter as a whole number and not as a decimal.
\n$\\var{a}\\times\\var{b}+\\var{c}=\\;$[[0]]
\nEnter the correct answer as a decimal i.e. in the form 2.0 and see what happens:
\n\n
\n ", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"showCorrectAnswer": true, "allowFractions": false, "scripts": {}, "type": "numberentry", "maxValue": "{ans1+tol}", "minValue": "{ans1-tol}", "correctAnswerFraction": false, "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "prompt": "\n
Decimals
\nMany calculations will result in numbers which need to be entered in decimal notation.
\nI will always ask for the decimal to be input to a certain number of decimal places.
\nOften there is a small tolerance built in so that if you get the result wrong by 1 in the last decimal place then it will be marked as correct.
\nBut accuracy is important - so make sure that you get the calculations correct.
\nFor example:
\nInput $\\displaystyle \\frac{\\var{a1}}{\\var{b1}}$ as a decimal correct to 2 decimal places here: [[0]]
\nTry putting in the correct value and submitting. Then vary the last decimal place by 1 either way and submitting and then the last place by 2 either way and submitting.
\nTry putting in the fraction as it is (i.e. $\\var{a1}/\\var{b1}$ ) and see what happens.
\nThe system gives an error message - as what you have put in is not a direct representation of a number. But you can always re-enter.
\nSo be careful - always check after submitting your answer that the input field contains the answer that you thought you input.
\n ", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"answer": "{a1+b1}/{a1*b1}", "musthave": {"message": "Input as a fraction.
", "showStrings": false, "partialCredit": 0, "strings": ["/"]}, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"message": "Simplify into a single fraction. Do not enter as a decimal.
", "showStrings": false, "partialCredit": 0, "strings": ["+", "."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "answersimplification": "all, fractionNumbers", "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "\nFractions
\nYou will find that some questions may ask you to input fractions and not decimals.
\nFor example:
\nFind the following sum as a fraction:
\n$\\displaystyle \\frac{1}{\\var{a1}}+\\frac{1}{\\var{b1}}=\\;$[[0]]
\n(input as a fraction and not a decimal)
\nYou input the answer as {a1+b1}/{a1*b1}
\nTry inputting the decimal version of this to as many places as you like (for example given by the calculator on the PC - you can copy this from the calculator and paste into the input field) and see what happens.
\n\n ", "showCorrectAnswer": true, "marks": 0}, {"type": "information", "prompt": "
As this question is in practice mode, if you click on the Reveal button at the bottom of the window all the question fields are filled with the correct answers. Also, if available, there will be a full solution given under the heading Advice. Just scroll down to see this. However, there is no Advice available for this question as it is not needed.
\nFinally as you are in practice mode, if you click on the \"Try another question like this one\" button at the bottom you will get this question again but with different numbers (usually!), and you can try it again. This is true for all practice mode questions which are randomised.
", "showCorrectAnswer": true, "scripts": {}, "marks": 0}], "statement": "\nIn this example we show how to enter numbers - either as
\n1. Whole numbers (integers).
\n2. Decimals (to a number of decimal places)
\n3. Fractions
\n ", "tags": ["checked2015", "decimals", "Fractions", "input", "introduction", "junk", "numbas", "Numbas", "numbers", "tolerance", "whole numbers"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": "Details on inputting numbers into Numbas.
"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "No advice available.
", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}