print ("** Stock dividend - calculator application **")
print()
TNST = float(input("Please enter the count of total number of stocks: "))
ADPO = float(input("Please enter annual dividend payout per annum: "))
CSPP = float(input("Please enter the current stock price: "))
DPAY = (ADPO/CSPP) * 100
print()
print("The annual dividend yield value is: %.2f " %DPAY)
print()
TPSV = ADPO * TNST
print("Total profit due to dividend is: %.2f" %TPSV)
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.