// Numbas version: exam_results_page_options {"name": "NA Booksellers commission (10+)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NA Booksellers commission (10+)", "tags": ["LANTITE", "Western Sydney MESH"], "metadata": {"description": "
Used for LANTITE preparation (Australia). NA = Number & Algebra strand. Students are given sales and years of service. They read the retainer and commission from two tables, then calculate before-tax income. The sales and years of service are randomly generated.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "An educational book seller pays its sales staff a monthly retainer (base level of pay) depending on their years of service. The retainer is given in Table 1 below.
\nThey also pay a commission based on the sales person's total sales for the month. If sales are below \\$500, no commission is paid. Otherwise, the commission is given in Table 2 below.
\nTable 1
\nFull years of service | \nRetainer | \n
0 - 2 | \n\\$600 | \n
3 - 5 | \n\\$700 | \n
6 - 8 | \n\\$800 | \n
9 and above | \n\\$900 | \n
Table 2
\nMonthly sales | \nCommission | \n
\\$500 - \\$799 | \n15% | \n
\\$800 - \\$899 | \n18% | \n
\\$900 - \\$999 | \n21% | \n
\\$1000 and over | \n24% | \n
Retainer
\n{name1} has been working as a book seller for {years} years. According to Table 1, the retainer is \\${retainer}.
\nCommission
\n{name1}'s sales for the month were \\${trim(dpformat(sales,0,\"si-en\"))}, so no commission is payable.
\n{name1}'s sales for the month were \\${trim(dpformat(sales,0,\"si-en\"))}. According to Table 2, the commission rate is {commissionrate*100}%.
\nThe commission earnt is {commissionrate*100}% of \\${trim(dpformat(sales,0,\"si-en\"))}.
\n{commissionrate*100}% of \\${trim(dpformat(sales,0,\"si-en\"))} = {commissionrate*100} ÷100 x \\${trim(dpformat(sales,0,\"si-en\"))} = \\${trim(split(dpformat(commissionrate*sales,2,\"si-en\"),\".00\")[0])}
\nIncome
\nIncome = Retainer + Commission = \\${trim(split(dpformat(retainer,2,\"si-en\"),\".00\")[0])} + \\${trim(split(dpformat(commissionrate*sales,2,\"si-en\"),\".00\")[0])} = \\${trim(split(dpformat(retainer+commissionrate*sales,2,\"si-en\"),\".00\")[0])}
\n{name1}'s income is \\${trim(dpformat(income,0,\"si-en\"))}.
\nRounded to the nearest dollar, {name1}'s income is \\${trim(dpformat(income,0,\"si-en\"))}.
\nThe number of years that the bookseller has been working for the company.
", "templateType": "randrange", "can_override": false}, "income": {"name": "income", "group": "Ungrouped variables", "definition": "retainer+commissionrate*sales", "description": "\n\n\n\nThe income, based on retainer plus commission.
", "templateType": "anything", "can_override": false}, "retainer": {"name": "retainer", "group": "Ungrouped variables", "definition": "switch({years}<3,600,{years}<6,700,{years}<9,800,900)", "description": "\n\n\n\nThe retainer paid, based on the years of service.
", "templateType": "anything", "can_override": false}, "name1": {"name": "name1", "group": "Ungrouped variables", "definition": "random(\"Maria\",\"Frances\",\"Maysa\",\"Gia\",\"Lin\",\"Yousif\",\"James\")", "description": "\n\n\nThe name of the book seller.
", "templateType": "anything", "can_override": false}, "sales": {"name": "sales", "group": "Ungrouped variables", "definition": "random(250 .. 1650#10)", "description": "\n\n\nThe dollar value of the sales for the given month.
", "templateType": "randrange", "can_override": false}, "commissionrate": {"name": "commissionrate", "group": "Ungrouped variables", "definition": "switch({sales}<500,0,{sales}<800,0.15,{sales}<900,0.18,{sales}<1000,0.21,0.24)", "description": "\n\nThe commission rate as a decimal, based on the monthly sales amount.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["name1", "years", "retainer", "sales", "commissionrate", "income"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "{name1} has been working for the book selling company for {years} years. Last month, {name1} sold books worth a total of \\${trim(dpformat(sales,0,\"si-en\"))}.
\nCalculate {name1}'s before-tax income for the month. Enter your answer, rounded to the nearest dollar. Do not type the \\$ sign.
", "minValue": "precround(income,0)", "maxValue": "precround(income,0)", "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", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}