Finds the maximum expected value of selling a stock

Assignment Help Portfolio Management
Reference no: EM131309023

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.

Reference no: EM131309023

Questions Cloud

Dividends- what is the current share price : Synovec Co. is growing quickly. Dividends are expected to grow at a rate of 22 percent for the next three years, with the growth rate falling off to a constant 7 percent thereafter. If the required return is 12 percent, and the company just paid a di..
Write c program that prompt the user to enter a line of text : Write a C program that prompts the user to enter a line of text (up to 50 characters). It should then convert the text entered to uppercase letters and then to lowercase letters, and then to Sentence case.
How will you conduct more research : How will you conduct more research? What do you need to know to make a recommendation? What is the purpose of your report?
Recommendation on the net present value of the outlay : Cautionary? Tales, Inc., is considering the acquisition of Danger Corp. at its asking price of ?$160,000. Cautionary would immediately sell some of? Danger's assets for ?$16,000 if it makes the acquisition. Danger has a cash balance of ?$1,600 at the..
Finds the maximum expected value of selling a stock : 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.
Why would anyone in zimbabwe willing to accept u.s. dollar : Why would anyone in Zimbabwe be willing to accept U.S. dollars in exchange for goods and services?
Create a marketing plan sections : Create a page Word document for your Marketing Plan sections. Apply a standard business writing style using the Market Planning Guide sections as your (headers/ sub heads/ bullets) to your work.
Create a separate class for the selected product : Create a separate class for the selected product that holds the item number, the name of the product, the department in which the product belongs, the number of units in stock, and the price of each unit.
Company is considering the capital budgeting projects : Midwest Water Works estimates tahat its WASS is 10.5%. The company is considering the following capital budgeting projects. Assume that each of these projects is just as risky as the firm’s existing assets and that the firm may accept all the project..

Reviews

Write a Review

Portfolio Management Questions & Answers

  Why you would expect it to have a high or low retention rate

A firm is earning 24 percent on equity and has low business and financial risk. Discuss why you would expect it to have a high or low retention rate.

  Discuss five such limitations from an accounting perspective

Using book value to measure profitability and to value a company's stock has limitations. Discuss five such limitations from an accounting perspective. Be specific.

  Describe an appropriate set of investment objectives

What is the expected return on stock A and stock B - what is the variance and standard deviation for stock A and stock B?

  What is the yield to maturity on these bonds

What is the yield to maturity on these bonds and what is their expected effective annual return - determine what is the required return on the equity fund

  Compute the estimated eps for s and p industrials index

Compute the estimated EPS for 2013. Assume that a member of the research committee for your firm feels that it is important to consider a range of operating profit margin (OPM) estimates.

  Explain why a change in the time to expiration

Explain why a change in the time to expiration (i.e., T) can have either a positive or neg- ative impact on the value of a European-style put option.

  What coupon rate would make the price

What is the price of $1 par of a 0.5-year zero and what is the price of $1 par of a 1-year zero - what coupon rate would make the price of a 1-year coupon bond equal to par?

  How might their investment policy statements differ

Your 45-year-old uncle is 20 years away from retirement; your 35-year-old older sister is about 30 years away from retirement. How might their investment policy statements differ?

  What-if and goal-seeking analysis

What-if and Goal-seeking analysis, Portfolio Planning using optimization and a Monte Carlo Simulation Problem

  Demonstrate arbitrage trade to take advantage of mispricing

Is this differential satisfied by current market prices? If not, demonstrate an arbitrage trade to take advantage of the mispricing.

  Analyze why getty image embraced agile methodologies

Explain the relationship among Agile project management, Agile portfolio management, and corporate culture.  Analyze why Getty Image embraced Agile methodologies.

  What is the probability that you own a good asset

There are two types of assets. Good quality assets (type-G assets) can have an annual rate of return equal to 4% or 6% with equal probability. What is the probability that you own a good asset? What is the predictive distribution of the return on yo..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd