// Numbas version: finer_feedback_settings {"name": "Pie chart", "extensions": [], "custom_part_types": [], "resources": [["question-resources/PIe.jpg", "/srv/numbas/media/question-resources/PIe.jpg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Pie chart", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

A restaurant classifies all its meals as Vetarian, Fish and Meat. The restaurant keeps records of what {meals} customers order. The results are recorded in the pie chart below.

\n

Angle a is {a}.

\n

Angle b is {b}.

\n

The diagram is not to scale.

\n

", "advice": "

Click \"Show Steps\" above to see how to solve this question.

", "rulesets": {}, "extensions": [], "variables": {"meals": {"name": "meals", "group": "Unnamed group", "definition": "random(900 .. 1350#45)", "description": "

number of meals surveyed

", "templateType": "randrange"}, "a": {"name": "a", "group": "Unnamed group", "definition": "random(136 .. 184#8)", "description": "

size of angle for vegetarian

", "templateType": "randrange"}, "b": {"name": "b", "group": "Unnamed group", "definition": "random(72 .. 104#8)", "description": "

Angle for meat

", "templateType": "randrange"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Unnamed group", "variables": ["meals", "b", "a"]}], "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": "

How many customers chose the vegetarian option?

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

First calculate the fraction of vegetarian meals ordered. This is {a} out of 360

\n

Next find this fraction of {meals} ie, calculate{a}/360 times {meals}

"}], "minValue": "({a}/360)*{meals}", "maxValue": "({a}/360)*{meals}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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": "

How many customers chose fish?

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The \"Fish\" sector of the pie chart has an angle of 360 - {a} - {b} = {360-a-b} (remember, the diagram is not to scale)

\n

Now we know the angle in question, we can proceed as we did for part a.

"}], "minValue": "((360-{a}-{b})/360)*{meals}", "maxValue": "((360-{a}-{b})/360)*{meals}", "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", "type": "question", "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}]}]}], "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}]}