Questions
Suppose you are giving the outcome returns of some assets under different scenarios. The probability for...

Suppose you are giving the outcome returns of some assets under different scenarios. The probability for the bearish, neutral and bullish market is 20%, 50% and 30%.

Asset

Bearish Market

Neutral Bullish Market
A -4.0% 0.0% 8.0%
B 8.0% 3.0% -7.0%
C -13.0% -2.0% 20.0%
D 6.0% 2.0% -1.0%
E 20.0% 10.0% 10.0%
Risk free Asset 0.5% 0.5% 0.5%

Please answer the following questions

Q1(1 point) What are the correlations between A and all other assets?

Q2 (1 point) How do you form MVP from asset A and B only (find the weights)?

Q3(1 point) What is the equation representing the efficient frontier for the above case in Q2?

Q4(1 point) How do you form the MVP based on asset A and C only, assuming short selling is allowed?

Q5(1 point) What is the equation representing the EF for the Q4 case?

Q6(1 point) What is the optimal RISKY market portfolio if asset A and D are the only two risky assets?

Q7(2 points) What is the optimal portfolio for an risk averse investor with A=200 is there are only asset A and D and risk free asset?

Q8(2 points) Assume the market portfolio has std of 3%, and the beta of asset A is 0.6, to what extend the expected return of asset A can be explained by singleindex model using the given market portfolio as the market index, and how much is the unsystematic risk based on this single-index model ?

In: Finance

Whenever I am attempting to write a simple program on C++ I get an error message...

Whenever I am attempting to write a simple program on C++ I get an error message that reads "cout was not declared in this scope". Literally every time. This has become frustrating because I have even written my code the exact same way as some of my classmates who got theirs to compile and run with no sign of this error at all, and yet min gives this answer. I will leave an example of a code where this error message appeared. Hopefully you can help. Thank you.

ex:

// Example program
#include <iostream>
#include <string>

int main()
{
double mass, velocity,energy;
cout<<"\n enter the objects weight";
cin>>mass;
cout<<"\n enter the objects velocity"
cin>>velocity;
energy=(1.0/2.0)*(mass*velocity)*2;
cout<<"\n mass = "<<mass<<"kg";
cout<<"\n velocity = "<<velocity<<"m/s";
cout<<"\n kinetic energy = "<<energy<<"kgm/s";
}

Here's the error message:

In function 'int main()': 8:1: error: 'cout' was not declared in this scope 8:1: note: suggested alternative: In file included from 2:0: /usr/include/c++/4.9/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ 9:1: error: 'cin' was not declared in this scope 9:1: note: suggested alternative: In file included from 2:0: /usr/include/c++/4.9/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^

In: Computer Science

How can I configure the button in this tip calculator to calculate the total using the...

How can I configure the button in this tip calculator to calculate the total using the entires for the bill and tip percentage? I'm using Visual Studio 2019 Xamarin.Forms

Main.Page.xaml

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="Accomplish_2.MainPage"
BackgroundColor="Gray"
Padding="5">

<StackLayout>
<!-- Place new controls here -->
<Label Text="Tip Calculator"
HorizontalOptions="Center"
VerticalOptions="Center"
FontSize="Title"
FontAttributes="Bold"/>

<BoxView BackgroundColor="LightPink"
HeightRequest="3"></BoxView>
  
<Entry Placeholder="Bill Total"
Keyboard="Numeric"
x:Name="billTotal"></Entry>
  
<Entry Placeholder="Tip Percentage"
Keyboard="Numeric"
x:Name="tipPercent"></Entry>

<Button Text="Calculate"
Clicked="Button_Clicked"></Button>
  
</StackLayout>

</ContentPage>

Everything above should be good to go, I just can't figure out how to get some actual calculations done with the other page of my code.

Main.Page.xaml.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace Accomplish_2
{
// Learn more about making custom code visible in the Xamarin.Forms previewer
// by visiting https://aka.ms/xamarinforms-previewer
[DesignTimeVisible(false)]
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}

private void Button_Clicked(object sender, EventArgs e)
{
???????? _______________________________________________?????????
}
}
}

In: Computer Science

Question 3 – Capital Investment Analysis The management team of Accent Group Limited have received a...

Question 3 – Capital Investment Analysis

The management team of Accent Group Limited have received a proposal from the manager of Hype DC. This proposal concerns a major upgrade to Hype DC's stores to improve the customer experience. Key details relating to this proposal include:

  • The initial cost will be $22 million. This cost will be depreciated using the straight line method over the 5 year life of the upgrade.
  • During year 1, the firm will increase marketing costs by $2.0 million to promote the store upgrades.
  • Over the five year life of the project, it is expected that the upgrade will increase the firm's sales by $18 million per year. On average, cost of sales is 45% of revenue.
  • The firm will need to higher additional staff over the life of the project to help to deal with the increased sale volume. In year 1, the firm's staffing costs will increase by $1.0 million. These costs will increase by 3.5% p.a.
  • The upgrade is expected to increase the firm's energy costs by $500,000 in year 1. This increase will be ongoing across the life of the project and will increase by 6% p.a.
  • Upgraded stores will include an old shoe recycling drop off zone. This recylcing program will cost $75,000 in year 1. These costs will increase by 2% p.a.
  • At the end of year 3, the firm will spend $1.5 million on a minor refurbishment to the stores.

The firm’s tax rate is 30%. The firm requires a 16% required rate of return on all potential investments.

Required

In relation to the above proposal:

  1. Calculate the annual after tax cash flows and annual after tax profit

(show with workings please)

In: Finance

For C code: Do not use any function other than getchar, scanf, and printf Q2.A) Write...

For C code: Do not use any function other than getchar, scanf, and printf

Q2.A) Write a program to do the following: Read in two values into variables X   and y from the keyboard (they may be decimal values like 2.3). Read in a 3rd value (which is really small < 1.0 ) into variable E. Using a loop find out the value of N in the below expression. i.e. Each iteration of the loop reduced the value of Y by dividing it by 2. Print out N at the end when the condition is met. For most input X and Y values the condition may not become true and the loop would become an infinite loop. To break from such "traps", you can have a loop count and break away. i.e. Count how many iterations it has run through the loop body, and if it goes over some number, say 100, just use "break" after saying "there is no solution for the given numbers" which should end the program.  

Note: This program conveys the convergence vs divergence in numerical methods.

(a) Let X = 1.02 Y = 8.1, E = 0.05. In each iteration Y/2N values become 8.1, 4.05, 2.025, 1.0125, and stops since X - 1.0125 is 0.0075 which is < E. This starting Y value converges toward a solution.

(b) If X = 1.02 and Y = 9.5, then it would not converge to a solution to meet the criterion, but diverges away. Y/2N value become 4.75, 2.375, 1.1875, 0.59375, 0.2968,goes to 0, but difference goes up.   

In: Computer Science

Iconic memory is a type of memory that holds visual information for about half a second...

Iconic memory is a type of memory that holds visual information for about half a second (0.5 seconds). To demonstrate this type of memory, participants were shown three rows of four letters for 50 milliseconds. They were then asked to recall as many letters as possible, with a 0-, 0.5-, or 1.0-second delay before responding. Researchers hypothesized that longer delays would result in poorer recall. The number of letters correctly recalled is given in the table.

Delay Before Recall
0 0.5 1
6 5 7
13 2 2
10 10 5
7 5 5
8 8 4
10 6 1

(a) Complete the F-table. (Round your values for MS and F to two decimal places.)

Source of Variation SS df MS F
Between groups
Within groups (error)
Total


(b) Compute Tukey's HSD post hoc test and interpret the results. (Assume alpha equal to 0.05. Round your answer to two decimal places.)

The critical value is_______ for each pairwise comparison.


Which of the comparisons had significant differences? (Select all that apply.)

A.) The null hypothesis of no difference should be retained because none of the pairwise comparisons demonstrate a significant difference.

B.) Recall following no delay was significantly different from recall following a half second delay.

C.) Recall following a half second delay was significantly different from recall following a one second delay.

D.) Recall following no delay was significantly different from recall following a one second delay.

In: Math

Ghost, Inc., has no debt outstanding and a total market value of $185,000. Earnings before interest...

Ghost, Inc., has no debt outstanding and a total market value of $185,000. Earnings before interest and taxes, EBIT, are projected to be $29,000 if economic conditions are normal. If there is strong expansion in the economy, then EBIT will be 30 percent higher. If there is a recession, then EBIT will be 40 percent lower. The company is considering a $65,000 debt issue with an interest rate of 7 percent. The proceeds will be used to repurchase shares of stock. There are currently 7,400 shares outstanding. Ignore taxes for questions a and b. Assume the company has a market-to-book ratio of 1.0 and the stock price remains constant.

a-1. Calculate return on equity (ROE) under each of the three economic scenarios before any debt is issued.

a-2. Calculate the percentage changes in ROE when the economy expands or enters a recession.

Assume the firm goes through with the proposed recapitalization.

b-1. Calculate the return on equity (ROE) under each of the three economic scenarios.

b-2. Calculate the percentage changes in ROE when the economy expands or enters a recession.

Assume the firm has a tax rate of 21 percent.

c-1. Calculate return on equity (ROE) under each of the three economic scenarios before any debt is issued.

c-2. Calculate the percentage changes in ROE when the economy expands or enters a recession.

c-3. Calculate the return on equity (ROE) under each of the three economic scenarios assuming the firm goes through with the recapitalization.

c-4. Given the recapitalization, calculate the percentage changes in ROE when the economy expands or enters a recession.

In: Finance

Modify the mortgage program to display 3 mortgage loans: 7 years at 5.35%, 15 year at...

Modify the mortgage program to display 3 mortgage loans: 7 years at 5.35%, 15 year at 5.5%, and 30 years at 5.75%. Use an array for the different loans. Display the mortgage payment amount for each loan. Do no use graphical user interface. Insert comments in the program to document the program.

***********Please look at my code so far. Still having trouble with arrays. Want to know if I'm going the right path********

import java.util.Scanner;
public class MortPay2
{
public static void main(String args[])
{
//declaration section
double principal, monthlyPayment;
int choice;
Scanner input = new Scanner(System.in);

   int term [] = {84, 180, 360}; //term in months
   double rate [] = {.0044, .0046, .0048};//rate in decimal format

  
   //display section
   System.out.println("Please select from 3 loan options.");
   System.out.println("1. Loan 1: 7 year term at 5.35% interest.");
   System.out.println("2. Loan 2: 15 year term at 5.5% interest.");
   System.out.println("3. Loan 3: 30 year term at 5.75% interest.");
   choice = input.nextInt();

   if (choice ==1)
   {
       System.out.println("You have chosen Loan 1.");
       System.out.println("Please enter the loan amount: $");
       principal = input.nextDouble();

       for ( int i = 0; i<3; i++)
       {
           monthlyPayment = principal * rate[0] / (1.0 - Math.pow (rate[0] + 1), -term[0]));
           System.out.println("Total monthly mortgae payment is $%.2f%n", monthlyPayment);
}
   }
  
  
}
}
  
      
  

In: Computer Science

Treynor Pie Company is a food company specializing in high-calorie snack foods. It is seeking to...

Treynor Pie Company is a food company specializing in high-calorie snack foods. It is seeking to diversify its food business and lower its risks. It is examining three companies—a gourmet restaurant chain, a baby food company, and a nutritional products firm. Each of these companies can be bought at the same multiple of earnings. The following represents information about all the companies.
  

Company Correlation with
Treynor Pie
Company
Sales
($ millions)
Expected Earnings
($ millions)
Standard Deviation
in Earnings
($ millions)
Treynor Pie Company + 1.0 $ 148 $ 10 $ 4.0
Gourmet restaurant + 0.5 66 6 1.2
Baby food company + 0.4 52 4 1.9
Nutritional products company 0.7 74 5 3.1


a-1. Compute the coefficient of variation for each of the four companies. (Enter your answers in millions (e.g., $100,000 should be entered as ".10"). Round your answers to 3 decimal places.)
  

Coefficient of Variation
Treynor Pie Company
Gourmet restaurant
Baby food company
Nutritional products company

a-2. Which company is the least risky?
  

  • Nutritional products company

  • Treynor Pie Company

  • Baby food company

  • Gourmet restaurant

a-3. Which company is the most risky?
  

  • Baby food company

  • Nutritional products company

  • Treynor Pie Company

  • Gourmet restaurant

b. Which of the acquisition candidates is most likely to reduce Treynor Pie Company's risk?
  

  • Gourmet restaurant

  • Nutritional products company

  • Baby food company

In: Finance

Iconic memory is a type of memory that holds visual information for about half a second...

Iconic memory is a type of memory that holds visual information for about half a second (0.5 seconds). To demonstrate this type of memory, participants were shown three rows of four letters for 50 milliseconds. They were then asked to recall as many letters as possible, with a 0-, 0.5-, or 1.0-second delay before responding. Researchers hypothesized that longer delays would result in poorer recall. The number of letters correctly recalled is given in the table.

Delay Before Recall
0 0.5 1
11 6 4
10 5 3
7 8 2
8 5 8
6 9 2
12 3 5

(a) Complete the F-table. (Round your values for MS and F to two decimal places.)

Source of Variation SS df MS F
Between groups
Within groups (error)
Total


(b) Compute Tukey's HSD post hoc test and interpret the results. (Assume alpha equal to 0.05. Round your answer to two decimal places.)

The critical value is  for each pairwise comparison.


Which of the comparisons had significant differences? (Select all that apply.)

1)Recall following no delay was significantly different from recall following a half second delay.

2)Recall following no delay was significantly different from recall following a one second delay.

3)The null hypothesis of no difference should be retained because none of the pairwise comparisons demonstrate a significant difference.

4)Recall following a half second delay was significantly different from recall following a one second delay.

In: Math