// Numbas version: finer_feedback_settings {"name": "price/earnings ratio PE", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "parts": [{"gaps": [{"correctAnswerFraction": false, "mustBeReducedPC": 0, "precisionPartialCredit": 0, "maxValue": "PE", "precision": "2", "strictPrecision": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "precisionMessage": "You have not given your answer to the nearest cent.", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "unitTests": [], "allowFractions": false, "showPrecisionHint": false, "precisionType": "dp", "correctAnswerStyle": "plain", "customName": "", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "useCustomName": false, "mustBeReduced": false, "marks": 1, "showFeedbackIcon": true, "minValue": "PE"}], "customName": "", "sortAnswers": false, "prompt": "

A share currently sells for $\\$\\var{P}$ and has an annual earning of $\\$\\var{Earn}$. What is its price/earnings ratio?

\n

\n

[[0]] (to 2 decimal places)

", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "useCustomName": false, "customMarkingAlgorithm": "", "marks": 0, "type": "gapfill", "showCorrectAnswer": true, "scripts": {}, "unitTests": [], "showFeedbackIcon": true}], "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "Find the price/earning ratio of a share."}, "advice": "

We are asked to find the price/earnings ratio, therefore we will use the formula

\n

$\\displaystyle P/E=\\frac{\\text{Share price}}{\\text{Earnings per share}}$

\n

In our situation we have, 

\n

$\\text{Share price}=\\var{P}$, 

\n

$\\text{Earnings per share}=\\var{Earn}$,

\n

and therefore we have

\n

$\\displaystyle P/E=\\frac{\\var{P}}{\\var{Earn}}$

\n

which upon calculation gives 

\n

$\\begin{align}P/E&=\\var{PErounded}\\quad \\text{(to 2 decimal places)}\\end{align}$

", "variable_groups": [], "rulesets": {}, "ungrouped_variables": ["P", "Earn", "PE", "PErounded"], "variables": {"PErounded": {"group": "Ungrouped variables", "name": "PErounded", "definition": "precround(PE,2)", "description": "", "templateType": "anything"}, "P": {"group": "Ungrouped variables", "name": "P", "definition": "random(5..40#0.01)", "description": "

P_0=\\frac{D_0(1+g)}{r_s-g}

", "templateType": "anything"}, "PE": {"group": "Ungrouped variables", "name": "PE", "definition": "P/Earn", "description": "", "templateType": "anything"}, "Earn": {"group": "Ungrouped variables", "name": "Earn", "definition": "precround(P/random(2..30#0.2),2)", "description": "", "templateType": "anything"}}, "tags": [], "statement": "

If you are unsure of how to do a question, click on Reveal answers to see the full working. Then, once you understand how to do the question, click on Try another question like this one to start again. Do each question repeatedly to ensure you have mastered it.

", "name": "price/earnings ratio PE", "preamble": {"css": "", "js": ""}, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}