// Numbas version: exam_results_page_options {"name": "Exam version Q 4 ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "profit", "loss", "ansone", "aprofit", "aloss", "anstwo"], "name": "Exam version Q 4 ", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

Cost price = 100%

\n

Part 1:

\n

If sold at a profit of $\\var{profit}$%, then

\n

Selling price = $\\var{aprofit}$%

\n

$\\var{a} \\times (\\frac{\\var{aprofit}}{100}) = \\var{ansone}$

\n

\n

Part 2 :

\n

If sold at a loss of $\\var{loss}$%, then

\n

Selling price = $\\var{aloss}$%

\n

$\\var{a} \\times (\\frac{\\var{aloss}}{100}) = \\var{anstwo}$

", "rulesets": {}, "parts": [{"prompt": "

Sold at a profit of $\\var{profit}$%?

\n

€[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ansone}", "strictPrecision": false, "minValue": "{ansone}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Sold at a loss of $\\var{loss}$%?

\n

€[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{anstwo}", "strictPrecision": false, "minValue": "{anstwo}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": "0", "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

The cost price of an item was €{dpformat(a,2)}. To the nearest cent, what was the selling price if the item was:

\n

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(40..150#0.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "loss": {"definition": "random(5..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "loss", "description": ""}, "anstwo": {"definition": "{a}*({aloss}/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "anstwo", "description": ""}, "ansone": {"definition": "{a}*({aprofit}/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "ansone", "description": ""}, "profit": {"definition": "random(10..30)", "templateType": "anything", "group": "Ungrouped variables", "name": "profit", "description": ""}, "aloss": {"definition": "100 - {loss}", "templateType": "anything", "group": "Ungrouped variables", "name": "aloss", "description": ""}, "aprofit": {"definition": "100 + {profit}\n", "templateType": "anything", "group": "Ungrouped variables", "name": "aprofit", "description": ""}}, "metadata": {"description": "

Profit and Loss, Percentages

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}