Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment you will create a c++ program to manage a small equities portfolio made up of single company stocks, Exchange traded funds (ETF),

In this assignment you will create a c++ program to manage a small equities portfolio made up of single company stocks, Exchange traded funds (ETF), and a Real Estate Investment Trust (REIT). Each object is an equity so you should have a class that is used to instantiate an equity object. The class should have the following private fields. Ticker symbol of type string Equity Name of type string Number of shares held of type integer. Equitytypeoftypeinteger (0=stock,1=ETF,2=REIT) The Exchange of type string (NSYE, NASDQ, etc) Current equity price of type float Estimated yearly price increase in percent float . Dividend yield in percent Dividend payment cycle of type integer. (1 = Yearly, 4 = Quarterly, 12 = Monthly). Calculated Dividend amount of type float. Calculated Current value of equity of type float. Calculated value of equity after n years of type float. Methods Your class should have the following methods. 1) Public getter methods for all fields 2) Public Setter methods for all non computed fields 3) A print out method that displays the equity ticker symbol, Equity Name, Number of shares held, current price per share, Calculated current value. 4) A private method to calculate the current value of the equity. Current price * Number of shares held. 5) A private method to calculate dividend amount for each dividend payment. Dividend amount = ( current price * dividend yield) / dividend payment cycle. 6) A method to calculate the value of your equity holding after n-years. To perform this calculation you must for each year compute a new current price based on the estimated yearly price increase for n-years. This is a recurrence relation on the price. You will also need to sum up all dividend payments for over n-years and add that to the value of the equity value after n-years. 7) You should generate the following report for the portfolio. The data you will use is in the file attached in the blackboard assignment. At the name. report top of the report put our class EGRE-246 Spring 2016 and your The next line should be blank followed by a line that says Equity Current price followed by a report that contains the following information. ticker symbol Name Type ( Stock, ETF, or REIT) Equity Equity Equity Equity Number of shares held Current value of shares held Estimated increase in share price per year in percent. Estimated value of shares held in 5 years and 10 years. At the bottom of the report should be the total current value of all shares and the total estimated 5 year and 10 year future values of all shares held. 8) Upload your Makefile, all source files, and all header files to blackboard by the due date.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago