Home / Expert Answers / Computer Science / methods-dividend-gt-takes-a-stock-symbol-returns-the-total-annual-dividend-for-stock-held-for-pa331

(Solved): methods:- dividend -> takes a stock symbol, returns the total annual dividend for stock held for ...



methods:
- dividend -> takes a stock symbol, returns the total annual dividend for stock held for that symbol. example: if you hold 100 shares of a stock that pays a $0.25 quarterly dividend the method would return 100 * .25 * 4
--- this should work with m,q,s and a type dividends
--- return 0.0 if the stock doesn't exist


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe