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