mpany name: Bank of Nova Scotia Enter Bank of Nova Scotia's stock symbol: BNS.TO Enter Bank of Nova Scotia's current stock price: 70.08 Enter Bank of Nova Scotia's annual dividend per share: 3.60 Enter the company name: TransAlta Renewables Enter TransAlta Renewables's stock symbol: RNW.TO Enter TransAlta Renewables's current stock price: 21.75 Enter TransAlta Renewables's annual dividend per share: 0.94 Enter the company name: Toronto Dominion Bank Enter Toronto Dominion Bank's stock symbol: TD.TO Enter Toronto Dominion Bank's current stock price: 74.81 Enter Toronto Dominion Bank's annual dividend per share: 3.16 COMPANY SYMBOL PR

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter19: Probabilistic Dynamic Programming
Section19.4: Further Examples Of Probabilistic Dynamic Programming Formulations
Problem 7P
icon
Related questions
Question
Please due in C++ The user should give the company name and numbers. If possible can you give a comment on the code please and thank you A sample run is as follows: Enter the company name: TC Energy Enter TC Energy's stock symbol: TRP.TO Enter TC Energy's current stock price: 55 Enter TC Energy's annual dividend per share: 3.24 Enter the company name: Canadian Utilities Enter Canadian Utilities's stock symbol: CU.TO Enter Canadian Utilities's current stock price: 31.70 Enter Canadian Utilities's annual dividend per share: 1.76 Enter the company name: Bank of Nova Scotia Enter Bank of Nova Scotia's stock symbol: BNS.TO Enter Bank of Nova Scotia's current stock price: 70.08 Enter Bank of Nova Scotia's annual dividend per share: 3.60 Enter the company name: TransAlta Renewables Enter TransAlta Renewables's stock symbol: RNW.TO Enter TransAlta Renewables's current stock price: 21.75 Enter TransAlta Renewables's annual dividend per share: 0.94 Enter the company name: Toronto Dominion Bank Enter Toronto Dominion Bank's stock symbol: TD.TO Enter Toronto Dominion Bank's current stock price: 74.81 Enter Toronto Dominion Bank's annual dividend per share: 3.16 COMPANY SYMBOL PRICE DIV YIELD VALUATION TC Energy TRP.TO 55.00 3.240 5.891 Under Valued Canadian Utilities CU.TO 31.70 1.760 5.552 Under Valued Bank of Nova Scotia BNS.TO 70.08 3.600 5.137 Under Valued TransAlta Renewables RNW.TO 21.75 0.940 4.322 Over Valued Toronto Dominion Bank TD.TO 74.81 3.160 4.224 Over Valued
paying their dividends in the future. But if they are sitting on a lot of cash then there
isn't anything to worry about, for now.
The Problem
●
●
Prompt the user to enter data for a company. The data required is:
O
the company name,
O
the company's stock symbol,
O
the share price, and
O the annual dividend per share.
The user will enter data for five companies. You can use the data in the above
table if you wish (ignore the dividend payout ratio).
Calculate the dividend yield for each company as follows:
●
the dividend yield = 100% x dividend_per_share / share_price.
Given the current rate of inflation, a dividend yield of 5% is considered to be
Go through each company and determine whether the company
is undervalued, overvalued or fully valued.
Print a report at the end with the following information:
company name, stock symbol, share price, annual dividend, dividend
yield, valuation.
You need to determine your data structure(s) as well as the types for each
variable in that structure. You may wish to add variables for the dividend yield
and the valuation to your structure.
You have to determine if any functions are required. It is always best for
structured programming that each function perform a specific task.
You need to determine if any loops are required.
Be wary of any divide-by-zero possibilities in the code.
Be sure to clear out your input buffer whenever required. See InputBuffer.c as an
example of clearing an input buffer whenever required.
You have to decide on your mechanism of input and output that is user friendly.
You may want to format your output into a neat table.
A sample run is as follows:
●
good. If a company has a yield of over 5% then that company is undervalued. If a
company has a yield of under 5% then that company is considered to be
overvalued. If a company has a yield of exactly 5% then that company is
considered fully valued.
·
●
Transcribed Image Text:paying their dividends in the future. But if they are sitting on a lot of cash then there isn't anything to worry about, for now. The Problem ● ● Prompt the user to enter data for a company. The data required is: O the company name, O the company's stock symbol, O the share price, and O the annual dividend per share. The user will enter data for five companies. You can use the data in the above table if you wish (ignore the dividend payout ratio). Calculate the dividend yield for each company as follows: ● the dividend yield = 100% x dividend_per_share / share_price. Given the current rate of inflation, a dividend yield of 5% is considered to be Go through each company and determine whether the company is undervalued, overvalued or fully valued. Print a report at the end with the following information: company name, stock symbol, share price, annual dividend, dividend yield, valuation. You need to determine your data structure(s) as well as the types for each variable in that structure. You may wish to add variables for the dividend yield and the valuation to your structure. You have to determine if any functions are required. It is always best for structured programming that each function perform a specific task. You need to determine if any loops are required. Be wary of any divide-by-zero possibilities in the code. Be sure to clear out your input buffer whenever required. See InputBuffer.c as an example of clearing an input buffer whenever required. You have to decide on your mechanism of input and output that is user friendly. You may want to format your output into a neat table. A sample run is as follows: ● good. If a company has a yield of over 5% then that company is undervalued. If a company has a yield of under 5% then that company is considered to be overvalued. If a company has a yield of exactly 5% then that company is considered fully valued. · ●
The Dividend Yield
There are many well known valuation techniques for determining the value of a stock.
For mature, well-established companies, valuation can be determined through its
dividend yield. Dividends are payments a company makes to share profits with its
stockholders. They're paid on a regular basis.
The annual dividend is the dividend paid per share each year. For instance, if a company
pays a dividend of $0.50 per share and you have 1000 shares, you will receive a
dividend payment of $500 per year (or $125 per quarter).
The dividend yield is the dividend per share divided by the price per share. This means,
a certain percentage of the share price is returned as a dividend. For instance, if a
company pays a dividend of $0.50 per share and the share price is $12.00, the dividend
yield is 100%*0.50/12.00 or 4.17%. To put it as a formula:
Yield = 100% x Dividend_Per_Share / Share_Price
Some companies cannot afford to pay the dividends they offer and have to cut their
dividend. One should look at the dividend payout ratio to see if a company can in fact
afford the dividend it offers. A dividend payout ratio of 1.00 means the company is
paying all its profits out as dividends. But that is another story, and not relevant to this
lab.
The following is a list of well-known well-established companies that offer dividends:
Company
TC Energy
Canadian Utilities
Bank of Nova
Scotia
TransAlta
Renewables
Toronto Dominion
Bank
Stock
Symbol
TRP.TO
CU.TO
BNS.TO
RNW.TO
TD.TO
Share
Price
$55.00
$31.70
$70.08
$21.75
Annual
Dividend
$3.24
$1.76
$3.60
$0.94
$74.81 $3.16
Dividend
Yield
5.89%
5.55%
5.13%
4.32%
4.22%
Dividend Payout
Ratio
0.685
1.181
0.679
2.848
0.491
From an analysis of the above table, you probably wouldn't want to purchase shares in
Canadian Utilities or TransAlta Renewables, as these companies may have problems
Transcribed Image Text:The Dividend Yield There are many well known valuation techniques for determining the value of a stock. For mature, well-established companies, valuation can be determined through its dividend yield. Dividends are payments a company makes to share profits with its stockholders. They're paid on a regular basis. The annual dividend is the dividend paid per share each year. For instance, if a company pays a dividend of $0.50 per share and you have 1000 shares, you will receive a dividend payment of $500 per year (or $125 per quarter). The dividend yield is the dividend per share divided by the price per share. This means, a certain percentage of the share price is returned as a dividend. For instance, if a company pays a dividend of $0.50 per share and the share price is $12.00, the dividend yield is 100%*0.50/12.00 or 4.17%. To put it as a formula: Yield = 100% x Dividend_Per_Share / Share_Price Some companies cannot afford to pay the dividends they offer and have to cut their dividend. One should look at the dividend payout ratio to see if a company can in fact afford the dividend it offers. A dividend payout ratio of 1.00 means the company is paying all its profits out as dividends. But that is another story, and not relevant to this lab. The following is a list of well-known well-established companies that offer dividends: Company TC Energy Canadian Utilities Bank of Nova Scotia TransAlta Renewables Toronto Dominion Bank Stock Symbol TRP.TO CU.TO BNS.TO RNW.TO TD.TO Share Price $55.00 $31.70 $70.08 $21.75 Annual Dividend $3.24 $1.76 $3.60 $0.94 $74.81 $3.16 Dividend Yield 5.89% 5.55% 5.13% 4.32% 4.22% Dividend Payout Ratio 0.685 1.181 0.679 2.848 0.491 From an analysis of the above table, you probably wouldn't want to purchase shares in Canadian Utilities or TransAlta Renewables, as these companies may have problems
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
SQL Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage