Questions
Consider the following information on Huntington Power Co. Debt: 4,000, 7% semiannual coupon bonds outstanding, $1,000...

Consider the following information on Huntington Power Co.

Debt: 4,000, 7% semiannual coupon bonds outstanding, $1,000 par value, 18 years to maturity, selling for 102 percent of par; the bonds make semiannual payments.

Preferred Stock: 10,000 outstanding with par value of $100 and a market value of 105 and $10 annual dividend.

Common Stock: 84,000 shares outstanding, selling for $56 per share, the beta is 2.08

The market risk premium is 5.5%, the risk free rate is 3.5% and Huntington’s tax rate is 32%.

Huntington Power Co. is evaluating two mutually exclusive project that is somewhat riskier than the usual project the firm undertakes; management uses the subjective approach and decided to apply an adjustment factor of +2.1% to the cost of capital for both projects.

Project A is a five-year project that requires an initial fixed asset investment of $2.4 million. The fixed asset falls into the five-year MACRS class. The project is estimated to generate $2,050,000 in annual sales, with costs of $950,000. The project requires an initial investment in net working capital of $285,000 and the fixed asset will have a market value of $225,000 at the end of five years when the project is terminated.

Project B requires an initial fixed asset investment of $1.0 million. The marketing department predicts that sales related to the project will be $920,000 per year for the next five years, after which the market will cease to exist. The machine will be depreciated down to zero over four-year using the straight-line method (depreciable life 4 years while economic life 5 years). Cost of goods sold and operating expenses related to the project are predicted to be 25 percent of sales. The project will also require an addition to net working capital of $150,000 immediately. The asset is expected to have a market value of $120,000 at the end of five years when the project is terminated.

Use the following rates for 5-year MACRS: 20%, 32%, 19.2%, 11.52%, 11.52%, and 5.76%

  1. Calculate WACC for the firm.
  2. What is the appropriate discount rate for project A and project B (Risk adjusted rate)?
  3. Calculate project A’s cash flows for years 0-5
  4. Calculate NPV, IRR and PI for project A
  5. Calculate project B’s cash flows for year 0-5
  6. Calculate NPV, IRR and PI for project B
  7. Which project should be accepted if any and why?
  8. What is the exact NPV profile’s crossover rate (incremental IRR)?

In: Finance

For this assignment you will write a class that transforms a Postfix expression (interpreted as a...

For this assignment you will write a class that transforms a Postfix expression (interpreted as a sequence of method calls) into an expression tree, and provides methods that process the tree in different ways.

We will test this using our own program that instantiates your class and calls the expected methods. Do not use another class besides the tester and the ExpressionTree class. All work must be done in the class ExpressionTree. Your class must be called ExpressionTree and have the following public methods:

public class ExpressionTree {

    public void pushNumber(double d);
    public void pushAdd();
    public void pushMultiply();
    public void pushSubtract();
    public void pushDivide();

    public double evaluate();
    public String infixString();

    public int height();        
    public void clear();

    // For bonus:
    // public void pushVariable();
    // public void evaluate(double variableVal);

}

Required methods

The methods should behave as follows:

  1. pushNumber(double d) should push a node containing a number to the internal stack.
  2. push (Add,Multiply,Subtract,Divide) should push a node representing the corresponding operation.
  3. infixString() should return a String containing a parenthesized inorder traversal of the expression tree. Note: this should interpret the top of the internal stack as the root of the tree.
  4. evaluate() should return the numeric value associated with the tree. This must operate recursively on the expression tree. Note: this should interpret the top of the internal stack as the root of the tree.
  5. height() should return the height of the expression tree (distance in edges between the root and the farthest leaf). Note: this should interpret the top of the internal stack as the root of the tree.
  6. clear() should reset the internal Stack

//////////TESTER CLASS THAT THE EXPRESSION TREE CODE MUST WORK WITH/////////////

public class ETreeValidator {
    public static void main(String[] args) 
    {
        ExpressionTree etree = new ExpressionTree();

        etree.pushNumber(10);
        etree.pushNumber(20);
        etree.pushOp("+");

        System.out.println("Expecting (10.0 + 20.0): " + etree.infixString());
        System.out.println("Expecting 30.0: " + etree.evaluate());
        System.out.println(("Expecting 1: " + etree.height()));

        etree.clear();

        
        etree.pushNumber(10);
        etree.pushNumber(20);
        etree.pushOp("+");
        etree.pushNumber(5);
        etree.pushNumber(3);
        etree.pushNumber(1);
        etree.pushOp("*");
        etree.pushOp("-");
        etree.pushOp("/");

        
        System.out.println("Expecting ((10.0 + 20.0) / (5.0 - (3.0 * 1.0))): " + etree.infixString());
        System.out.println("Expecting 15.0: " + etree.evaluate());
        System.out.println(("Expecting 3: " + etree.height()));
        etree.clear();
        
        // Uncomment this if you did the bonus
        etree.pushNumber(1.5);
        etree.pushNumber(12);
        etree.pushVariable();
        etree.pushOp("/");
        etree.pushOp("*");
        etree.pushVariable();
        etree.pushOp("-");
        System.out.println("Expecting ((1.5 * (12.0 / VAR)) - VAR): " + etree.infixString());
        System.out.println("Expecting 7: " + etree.evaluate(2));
        System.out.println(("Expecting 3: " + etree.height()));
        


    }
}

In: Computer Science

Write three functions that compute the square root of an argument x using three different methods....

Write three functions that compute the square root of an argument x using three different methods. The methods are increasingly sophisticated, and increasingly efficient. The square root of a real number x is the value s such that s*s == x. For us, the values will be double precision variables and so may not be perfectly accurate. Also, for us, assume that x is in the range 0.0 to 100.0. You program should have a main() that asks the user for x and an accuracy bound, and then prints out the approximate square root for each of the three methods. If x is negative write an error message and exit. One. Write a pure function double sqrtLS(x, accuracy) that computes the square root of x using Linear Search. Do this in a loop that starts s at 0.0 and bestError at x. Each iteration of the loop computes error = |x-s*s|. If error< bestError, set bestError to error, and bestS to the current s. Then increment s by accuracy and move on. At the end of the loop, return bestS. This method is linear search, it searches along the number line for the best s that is within accuracy of the true value. Use the function double fabs(double) from the math library to compute absolute value. Two. Write a pure function double sqrtBS(x,accuracy) that computes the square root of x using Binary Search. (This method is also called bisection.) Start a variable low at 0.0 and a variable high at 10.0. This assumes that x will be no larger than 100.0 In a while loop do this: Compute the midpoint mid=(low+high)/2. If |x-mid*mid| ≤ accuracy return mid. If mid*mid < x set low = mid. Else set high = mid. Three. Write a pure function double sqrtNM(x, accuracy) that computes the square root of x using Newton’s Method. Recall the method: Start out an initial guess s=1.0 (or any value). Now repeatedly improve the guess: s = (s + x/s)/2 When the guess meets the ending condition |x-s*s| is ≤ bound return s. M:\ClassApps>gcc -lm squareRoot.c M:\ClassApps>.\a Enter x --> 47.5 Enter error bound --> 1e-5 sqrtLS(47.500)= 6.892020; s*s = 47.499940 sqrtBS(47.500)= 6.892024; s*s = 47.499999 sqrtNM(47.500)= 6.892024; s*s = 47.500001 Use ANSI-C syntax. Do not mix tabs and spaces. Do not use break or continue.

In: Computer Science

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

Kaelea, Inc., has no debt outstanding and a total market value of $69,000. Earnings before interest and taxes, EBIT, are projected to be $9,000 if economic conditions are normal. If there is strong expansion in the economy, then EBIT will be 20 percent higher. If there is a recession, then EBIT will be 25 percent lower. The company is considering a $21,900 debt issue with an interest rate of 8 percent. The proceeds will be used to repurchase shares of stock. There are currently 4,600 shares outstanding. Assume the company has a market-to-book ratio of 1.0.

a. Calculate return on equity, ROE, under each of the three economic scenarios before any debt is issued, assuming no taxes. (Do not round intermediate calculations and enter your answers as a percent rounded to 2 decimal places, e.g., 32.16.)

ROE
Recession %
Normal %
Expansion %



b. Calculate the percentage changes in ROE when the economy expands or enters a recession, assuming no taxes. (A negative answer should be indicated by a minus sign. Do not round intermediate calculations and enter your answers as a percent rounded to the nearest whole number, e.g., 32.)

%ΔROE
Recession %
Expansion %

  
Assume the firm goes through with the proposed recapitalization and no taxes.

c. Calculate return on equity, ROE, under each of the three economic scenarios after the recapitalization. (Do not round intermediate calculations and enter your answers as a percent rounded to 2 decimal places, e.g., 32.16.)

ROE
Recession %
Normal %
Expansion %


d. Calculate the percentage changes in ROE for economic expansion and recession. (A negative answer should be indicated by a minus sign. Do not round intermediate calculations and enter your answers as a percent rounded to 2 decimal places, e.g., 32.16.)

%ΔROE
Recession %
Expansion %


Assume the firm has a tax rate of 35 percent.

e. Calculate return on equity, ROE, under each of the three economic scenarios before any debt is issued. Also, calculate the percentage changes in ROE for economic expansion and recession. (A negative answer should be indicated by a minus sign. Do not round intermediate calculations and enter your answers as a percent rounded to 2 decimal places, e.g., 32.16.)

ROE
Recession %
Normal %
Expansion %
%ΔROE
Recession %
Expansion %


f. Calculate return on equity, ROE, under each of the three economic scenarios after the recapitalization. Also, calculate the percentage changes in ROE for economic expansion and recession, assuming the firm goes through with the proposed recapitalization. (A negative answer should be indicated by a minus sign. Do not round intermediate calculations and enter your answers as a percent rounded to 2 decimal places, e.g., 32.16.)

ROE
Recession %
Normal %
Expansion %


%ΔROE
Recession %
Expansion %

In: Finance

Consider the following information on Huntington Power Co. Debt: 4,000, 7% semiannual coupon bonds outstanding, $1,000...

Consider the following information on Huntington Power Co.

Debt: 4,000, 7% semiannual coupon bonds outstanding, $1,000 par value, 18 years to maturity, selling for 102 percent of par; the bonds make semiannual payments.

Preferred Stock: 10,000 outstanding with par value of $100 and a market value of 105 and $10 annual dividend.

Common Stock: 84,000 shares outstanding, selling for $56 per share, the beta is 2.08

The market risk premium is 5.5%, the risk free rate is 3.5% and Huntington’s tax rate is 32%.

Huntington Power Co. is evaluating two mutually exclusive project that is somewhat riskier than the usual project the firm undertakes; management uses the subjective approach and decided to apply an adjustment factor of +2.1% to the cost of capital for both projects.

Project A is a five-year project that requires an initial fixed asset investment of $2.4 million. The fixed asset falls into the five-year MACRS class. The project is estimated to generate $2,050,000 in annual sales, with costs of $950,000. The project requires an initial investment in net working capital of $285,000 and the fixed asset will have a market value of $225,000 at the end of five years when the project is terminated.

Project B requires an initial fixed asset investment of $1.0 million. The marketing department predicts that sales related to the project will be $920,000 per year for the next five years, after which the market will cease to exist. The machine will be depreciated down to zero over four-year using the straight-line method (depreciable life 4 years while economic life 5 years). Cost of goods sold and operating expenses related to the project are predicted to be 25 percent of sales. The project will also require an addition to net working capital of $150,000 immediately. The asset is expected to have a market value of $120,000 at the end of five years when the project is terminated.

Use the following rates for 5-year MACRS: 20%, 32%, 19.2%, 11.52%, 11.52%, and 5.76%

  1. Calculate WACC for the firm.
  2. What is the appropriate discount rate for project A and project B (Risk adjusted rate)?
  3. Calculate project A’s cash flows for years 0-5
  4. Calculate NPV, IRR and PI for project A
  5. Calculate project B’s cash flows for year 0-5
  6. Calculate NPV, IRR and PI for project B
  7. Which project should be accepted if any and why?
  8. What is the exact NPV profile’s crossover rate (incremental IRR)?

In: Finance

Consider the following information on Huntington Power Co. Debt: 4,000, 7% semiannual coupon bonds outstanding, $1,000...

Consider the following information on Huntington Power Co.

Debt: 4,000, 7% semiannual coupon bonds outstanding, $1,000 par value, 18 years to maturity, selling for 102 percent of par; the bonds make semiannual payments. Preferred Stock: 10,000 outstanding with par value of $100 and a market value of 105 and $10 annual dividend. Common Stock: 84,000 shares outstanding, selling for $56 per share, the beta is 2.08

The market risk premium is 5.5%, the risk free rate is 3.5% and Huntington’s tax rate is 32%.

Huntington Power Co. is evaluating two mutually exclusive project that is somewhat riskier than the usual project the firm undertakes; management uses the subjective approach and decided to apply an adjustment factor of +2.1% to the cost of capital for both projects.

Project A is a five-year project that requires an initial fixed asset investment of $2.4 million. The fixed asset falls into the five-year MACRS class. The project is estimated to generate $2,050,000 in annual sales, with costs of $950,000. The project requires an initial investment in net working capital of $285,000 and the fixed asset will have a market value of $225,000 at the end of five years when the project is terminated.

Project B requires an initial fixed asset investment of $1.0 million. The marketing department predicts that sales related to the project will be $920,000 per year for the next five years, after which the market will cease to exist. The machine will be depreciated down to zero over four-year using the straight-line method (depreciable life 4 years while economic life 5 years). Cost of goods sold and operating expenses related to the project are predicted to be 25 percent of sales. The project will also require an addition to net working capital of $150,000 immediately. The asset is expected to have a market value of $120,000 at the end of five years when the project is terminated.

Use the following rates for 5-year MACRS: 20%, 32%, 19.2%, 11.52%, 11.52%, and 5.76%

1) Calculate WACC for the firm.

2) What is the appropriate discount rate for project A and project B (Risk adjusted rate)?

3) Calculate project A’s cash flows for years 0-5

4) Calculate NPV, IRR and PI for project A

5) Calculate project B’s cash flows for year 0-5

6) Calculate NPV, IRR and PI for project B

7) Which project should be accepted if any and why?

8) What is the exact NPV profile’s crossover rate (incremental IRR)?

In: Finance

3. There are several techniques for determining body composition. One method is hydrostatic weighing, or “underwater...

3. There are several techniques for determining body composition. One method is hydrostatic weighing, or “underwater weighing”. To do this measurement, the person is weighed while standing in air on a regular scale and weighed again while completely immersed in water. By comparing these scale readings, the average density of the person can be calculated. From that density, the body fat percentage of the person can be calculated. Imagine you are a physical therapist, determining the body composition of a patient. The scale reading of your patient standing in air on a regular scale is 177 pounds, and while completely immersed in water is 2.5 pounds. NOTE: In this problem, a fair amount of precision is needed, so please: use g = 9.8 m/s2 , not the estimate of 10 m/s2 for converting units of force, use 1.0 pound = 4.45 Newtons

(a) Draw two free body diagrams of the patient: one when they are weighed in air on a regular scale, and one when they are weighed while immersed in water. Label each of the forces with its name.

(b) Determine the magnitude of each of the forces on your diagrams. (Recall the magnitude of a force is how big that force is.) Include units!

(c) Determine the mass of your patient. Include units!

(d) Determine the density of your patient. Give your answer both kilograms per cubic meter and in grams per cubic centimeter. Include units!

The body is made up of essentially two components: fat mass (the total fat of an individual) and fat-free mass (everything else: bone, water, lean tissue, etc.) Studies have determined that the densities of these two components are: Density of fat mass = 0.90 grams per cc Density of fat-free mass = 1.10 grams per cc (In physics, we write cubic centimeter as cm3 . In medicine, cubic centimeter is written as cc.) A person with a density of 0.90 g/cc would have 100% body fat, and a person with a density of 1.10 grams/cc would have zero percent body fat. Real people fall between these two extremes.

(e) Given the above information, assess your result for your patient’s density. Do you have confidence that your answer is reasonable? Explain why or why not.

(f) You discover that the scale reading of 2.5 pounds was actually obtained with the patient submerged in seawater, not fresh water. Which of the following is true? Circle one answer. Explain.

A. The calculated value of density is higher than the person’s actual density.

B. The calculated value of density is lower than the person’s actual density.

C. The patient’s density would be calculated correctly

In: Physics

Quantitative Problem: Rosnan Industries' 2014 and 2013 balance sheets and income statements are shown below. Balance...

Quantitative Problem: Rosnan Industries' 2014 and 2013 balance sheets and income statements are shown below.

Balance Sheets:
2014 2013
Cash and equivalents $70   $55  
Accounts receivable 275   300  
Inventories 375   350  
      Total current assets $720   $705  
Net plant and equipment 2,000   1,490  
Total assets $2,720   $2,195  
Accounts payable $150   $85  
Accruals 75   50  
Notes payable 120   145  
      Total current liabilities $345   $280  
Long-term debt 450   290  
Common stock 1,225   1,225  
Retained earnings 700   400  
Total liabilities and equity $2,720   $2,195  



Income Statements:
2014 2013
Sales $2,000   $1,500  
Operating costs excluding depreciation 1,250   1,000  
EBITDA $750   $500  
Depreciation and amortization 100   75  
EBIT $650   $425  
Interest 62   45  
EBT $588   $380  
Taxes (40%) 235   152  
Net income $353   $228  
Dividends paid $53   $48  
Addition to retained earnings $300   $180  
Shares outstanding 100   100  
Price $25.00   $22.50  
WACC 10.00%     

What is the firm’s 2014 current ratio? Round your answer to two decimal places.

The 2014 current ratio indicates that Rosnan has sufficient/insufficient current assets to meet its current obligations as they come due.

What is the firm’s 2014 total assets turnover ratio? Round your answer to four decimal places.

Given the 2014 current and total assets turnover ratios calculated above, if Rosnan’s 2014 quick ratio is 1.0 then an analyst might conclude that Rosnan’s fixed assets are managed -Select-efficiently/inefficiently

What is the firm’s 2014 debt-to-capital ratio? Round your answer to two decimal places.
%

If the industry average debt-to-capital ratio is 30%, then Rosnan’s creditors have a -Select-smaller/bigger cushion than indicated by the industry average.

What is the firm’s 2014 profit margin? Round your answer to two decimal places.
%

If the industry average profit margin is 12%, then Rosnan’s lower than average debt-to-capital ratio might be one reason for its high profit margin.
-Select-True/FalseCorrect

What is the firm’s 2014 price/earnings ratio? Round your answer to two decimal places.

Using the DuPont equation, what is the firm’s 2014 ROE? Round your answer to two decimal places.
%

In: Finance

Please use c++ and follow the instruction I have written my own code but somehow I'm...

Please use c++ and follow the instruction

I have written my own code but somehow I'm confused during the process I cannot figure out how to finish this lab, I need help.

Write a program that allows user to input four floating-points values and then prints the largest. It must use functions max2 (given below) to determine the largest value. Feel free to use additional functions, but you are not required to do so. Hint: main will call max2 three times to get the work done (i.e., there should be three calls to max2 function).

      double max2(double a, double b)
      {
          double max;

          if (a > b)
              max = a;
          else
              max = b;

          return max;
      }

Follow the format for the sample I/O below. When your code is complete and runs properly, capture the output. Copy and paste both the source code and the output for both test cases.

Test case 1:

Author: Your name
This program allows one to input four values.
It uses function max2 to determine the maximum.

Please enter first value   --> 5.2<Enter>
Please enter second value  --> 1.0<Enter>
Please enter third value   --> 7.1<Enter>
Please enter fourth value  --> 2.5<Enter>
The largest value is 7.1

Test case 2:

Author: Your name
This program allows one to input four values.
It uses function max2 to determine the maximum.

Please enter first value   --> 5.2<Enter>
Please enter second value  --> 7.0<Enter>
Please enter third value   --> 7.0<Enter>
Please enter fourth value  --> 2.5<Enter>
The largest value is 7.0

Here is my code

#include<iostream>
#include<string>

using namespace std;

int max2(double a, double b, double& max);
void displayInfo(double max);

int main()
{
double a, b, c, d;
double number;
int counter;


cout << "Please enter first value ";
cin >> a;

cout << "Please enter second value ";
cin >> b;

cout << "Please enter third value ";
cin >> c;

cout << "Please enter fourth value ";
cin >> d;

displayInfo(max);
  
}

// defination determine the largest value
int max2(double a, double b, double& max)
{
if (a > b)
{
max = a;
}
else
{
max = b;
}
}

// module displayInfo
void displayInfo(double max)
{
cout << "The largest value is "<< max << "\n";
}

In: Computer Science

# Problem Description Given a directed graph G = (V,E) with edge length l(e) > 0...

# Problem Description

Given a directed graph G = (V,E) with edge length l(e) > 0 for any e in E, and a source vertex s. Use Dijkstra’s algorithm to calculate distance(s,v) for all of the vertices v in V.
(You can implement your own priority queue or use the build-in function for C++/Python)

# Input

The graph has `n` vertices and `m` edges.
There are m + 1 lines, the first line gives three numbers `n`,`m` and `s`(1 <= s <=n), describing the number of vertices, the number of edges and the source vertex. Each of the following lines contains three integers `a`, `b` and `c`, meaning there is an edge (a,b) belong to E and the length of the edge is c. All the numbers in a line are separated by space. (`1 <= a,b <= n`)


You can assume that 1 <= n <= 1000, 1 <= m <= 5000, and the length of edge is in the range of [1, 1000].

Your code should read the input from standard input (e.g.
using functions `input()/raw_input()` in Python and `cin/scanf` in C++).

# Output

N lines, the i-th line contain a number representing the distance(s,i). If s can not reach the i-th vertex, output `-1` at the i-th line.


Your code should write the output to standard output (e.g. using functions `print` in Python and `cout/printf` in C++).

# Requirement

Your algorithm should run in O(nlogn) time.

Time limtation: 5 seconds.

Memory limitation: 1.0 GB.

# Environment

Your code will be running on Ubuntu 18.04.5.

Now only accept C++ and Python2/Python3 code, g++ version 7.5.0 and Python versions are Python 2.7.17 and Python 3.6.9.

# Examples and Testing

Some examples (e.g., input-x.txt and output-x.txt, x = 1, 2) are provided.
A figure corresponding input-1 can be found in this repo too.
For Python code, try the following to test your code
```
python ./solution.py < input-x.txt > my-output-x.txt
```
For C++ code, try the following to test your code
```
g++ -o mybinary solution.cpp
./mybinary < input-x.txt > my-output-x.txt
```

Your output `my-output-x.txt` needs to be *match exactly* to the given `output-x.txt`.
On Unix-based systems you can use `diff` to compare them:
```
diff my-output-x.txt output-x.txt
```
On Windows you can use `fc` to compare them:
```
fc my-output-x.txt output-x.txt
```

In: Computer Science