Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Portfolio Management Expert

In this assignment you will build a stock portfolio manager. The manager program will consist of 3 dictionaries.

The first dictionary, called Names, maps the stock symbol to the company name (example: "GM" maps to "General Motors").

The second dictionary, called Prices, maps the stock symbol to a list of 2 floating point numbers corresponding to the buy price (the price the user paid for the stock) and the current market price (the price the user could sell the stock for today).

The third dictionary, called Exposure, maps the stock symbol to a list of 2 floating point numbers, corresponding to the number of shares purchased, and the risk associated with holding onto the stock (i.e. How likely the stock is to gain value in the future).

Your program should consist of the following functions:

AddName - Asks the user for a Stock Symbol and Name pairing then adds it to the Names dictionary.

AddPrices - Takes a Stock Symbol as an input parameter, then asks the user for the Buy price and the Current price of the corresponding stock, adding them to the Prices dictionary.

AddExposure - Takes a Stock Symbol as an input parameter, then asks the user for the Risk and Shares of the corresponding stock, adding them to the Exposure dictionary.

AddStock - Calls AddName, AddPrices, and AddExposure to add a new stock to the portfolio.

GetSale - Finds the maximum expected value of selling a stock. The expected sale value of a stock is the current profit minus the future value of the stock:

Expected Sale value = ( ( Current Price - Buy Price ) - Risk * CurrentPrice ) * Shares

The GetSale function should calculate this value for each stock in the portfolio, and return the stock symbol with the highest expected sale value.

Main - Should take no arguments, but present a menu item consisting of "1. Add Stock", "2. Recommend Sale" and "3. Exit". If the user selects '1,' the Add Stock function is called, and when it is complete, the menu is presented again. If the user selects '2,' the Symbol of the stock corresponding to the highest expected value (returned by GetSale) should be displayed, and the menu presented after completion. If the user selects '3', the program should end.

Portfolio Management, Finance

  • Category:- Portfolio Management
  • Reference No.:- M92063650
  • Price:- $35

Priced at Now at $35, Verified Solution

Have any Question? 


Related Questions in Portfolio Management

Background information abc superannuation fundabc

Background information: ABC Superannuation Fund ABC Superannuation Fund (ABC) is a scheme that was originally only available to state public servants. It has two parts: - a defined benefit (DB) scheme - a defined contrib ...

Question - you are a portfolio manager and you want to

Question - You are a portfolio manager, and you want to invest in an asset having s = 40%. You want to create a put on the investment so that at the end of the year you have losses no greater than 5%. Since there is no p ...

Read the following case study on sappi southern africa and

Read the following case study on Sappi Southern Africa and answer the questions at the end of the case: Group Assignment Questions 1. Sappi presents a good example of the dangers of excessive reliance on one screening te ...

Assignmentcompletion of portfolio projectthis assignment

Assignment Completion of Portfolio Project This assignment requires you to compile Parts 1, 2, and 3 into one document, which will be your final report on the global aspects of your selected company. Do not just copy the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As