Questions
Solve the given differential equation by (a) undetermined coefficients and (b) variation of parameters: y'' -3y'+2y=sinx

Solve the given differential equation by (a) undetermined coefficients and (b) variation of parameters:

y'' -3y'+2y=sinx

In: Advanced Math

You have looked at the current financial statements for Reigle Homes, Co. The company has an...

You have looked at the current financial statements for Reigle Homes, Co. The company has an EBIT of $3,130,000 this year. Depreciation, the increase in net working capital, and capital spending were $239,000, $104,000, and $485,000, respectively. You expect that over the next five years, EBIT will grow at 20 percent per year, depreciation and capital spending will grow at 25 per year, and NWC will grow at 15 per year. The company currently has $17,900,000 in debt and 515,000 shares outstanding. After Year 5, the adjusted cash flow from assets is expected to grow at 3.5 percent indefinitely. The company’s WACC is 8.7 percent and the tax rate is 35 percent. What is the price per share of the company's stock? (Do not round intermediate calculations and round your answer to 2 decimal places, e.g., 32.16.) Share price $

In: Finance

Provide brief definitions and an example for each of the following. a. acute care b. ALOS...

Provide brief definitions and an example for each of the following.

a. acute care

b. ALOS

c. Chronic disease

d. Data Mart

e. BI

In: Computer Science

Regarding clinician use of the EMR/EHR, when is the best time to access and document into...

Regarding clinician use of the EMR/EHR, when is the best time to access and document into the EMR/EHR? Explain.

In: Computer Science

please include calculations/explanations to all answersYou are currently only invested in the Natasha Fund (aside from...

  1. please include calculations/explanations to all answersYou are currently only invested in the Natasha Fund (aside from risk-free securities). It has an expected return of 14% with a volatility of 20%. Currently, the risk-free rate of interest is 3.8%. Your broker suggests that you add Hannah Corporation to your portfolio. Hannah Corporation has an expected return of 20%, a volatility of 60%, and a correlation of 0 with the Natasha Fund.
  1. Is your broker right?
  2. You follow your broker’s advice and make a substantial investment in Hannah stock so that, considering only your risky investments, 60% is in the Natasha Fund and 40% is in Hannah stock. When you tell your finance professor about your investment, he says that you made a mistake and should reduce your investment in Hannah. Is your finance professor right?
  3. You decide to follow your finance professor’s advice and reduce your exposure to Hannah. Now Hannah represents 15% of your risky portfolio, with the rest in the Natasha fund. Is this the correct amount of Hannah stock to hold?
  4. Calculate the Sharpe ratio of each of the three portfolios. What portfolio weight in Hannah stock maximizes the Sharpe ratio?

In: Finance

There are three steps (open, action, close) required for handling files. You need to write a...

There are three steps (open, action, close) required for handling files. You need to write a Python program what executes each of these three steps. Your program must include:
 Extensive comments to ensure explanation of your code (1).
 Open a file (file name must include your student number, thus filexxxxxxxx.txt). (1).
 Write the details of the five students (from Question 1 above) to a file (3).
 Close the file. (1)
 Then open the file again (1).
 Write the contents of the file to display on the screen (3).

In: Computer Science

Is genetic intervention and / or genetic enhancement morally acceptable? In what ways are these techniques...

Is genetic intervention and / or genetic enhancement morally acceptable? In what ways are these techniques similar and different from, ethically, than vaccines to combat disease or the use of legal stimulants like caffeine to enhance brain function?

In: Nursing

Taking as a reference a sensor that delivers a reading through a parallel bus at a...

Taking as a reference a sensor that delivers a reading through a parallel bus at a rate of 12 bits/ms, carry out a program within MARIE's environment that stores the first 50 measurements in memory.

In: Computer Science

You work for a pharmaceutical company that has developed a new drug. The patent on the...

You work for a pharmaceutical company that has developed a new drug. The patent on the drug will last 17 years. You expect that the​ drug's profits will be $2 million in its first year and that this amount will grow at a rate of 5% per year for the next 17 years. Once the patent​ expires, other pharmaceutical companies will be able to produce the same drug and competition will likely drive profits to zero. What is the present value of the new drug if the interest rate is10% per​ year?

In: Finance

UseMath Write a program called UseMath. It should contain a class called UseMath that contains the...

 

UseMath

Write a program called UseMath. It should contain a class called UseMath that contains the method main. The program should ask for a number from the user and then print the information shown in the examples below. Look at the examples below and write your program so it produces the same input/output.

Examples

(the input from the user is in bold face) % java UseMath enter a number: 0 the square root of 0.0 is: 0.0 rounded to the nearest integer: 0 the value of PI is: 3.141592653589793 the value of PI plus your number is: 3.141592653589793 rounded to the nearest integer: 3 the value of E plus your number is: 2.718281828459045 the absolute value of your number is: 0.0 % java UseMath enter a number: 1 the square root of 1.0 is: 1.0 rounded to the nearest integer: 1 the value of PI is: 3.141592653589793 the value of PI plus your number is: 4.141592653589793 rounded to the nearest integer: 4 the value of E plus your number is: 3.718281828459045 the absolute value of your number is: 1.0 % java UseMath enter a number: -1 the square root of -1.0 is: NaN rounded to the nearest integer: 0 the value of PI is: 3.141592653589793 the value of PI plus your number is: 2.141592653589793 rounded to the nearest integer: 2 the value of E plus your number is: 1.718281828459045 the absolute value of your number is: 1.0 % java UseMath enter a number: .5 the square root of 0.5 is: 0.7071067811865476 rounded to the nearest integer: 1 the value of PI is: 3.141592653589793 the value of PI plus your number is: 3.641592653589793 rounded to the nearest integer: 4 the value of E plus your number is: 3.218281828459045 the absolute value of your number is: 0.5 % java UseMath enter a number: .1 the square root of 0.1 is: 0.31622776601683794 rounded to the nearest integer: 0 the value of PI is: 3.141592653589793 the value of PI plus your number is: 3.241592653589793 rounded to the nearest integer: 3 the value of E plus your number is: 2.818281828459045 the absolute value of your number is: 0.1 % java UseMath enter a number: 10 the square root of 10.0 is: 3.1622776601683795 rounded to the nearest integer: 3 the value of PI is: 3.141592653589793 the value of PI plus your number is: 13.141592653589793 rounded to the nearest integer: 13 the value of E plus your number is: 12.718281828459045 the absolute value of your number is: 10.0 %

In: Computer Science

This is a java program I am trying to figure out how to add a couple...

This is a java program

I am trying to figure out how to add a couple methods to a program I am working on.

I need to be able to:

1. Remove elements from a binary tree

2. Print them in breadth first order

Any help would appreciated.

//start BinaryTree class

/**
*
* @author Reilly
* @param <E>
*/
public class BinaryTree {

TreeNode root = null;
TreeNode current, parent;
private int size = 0, counter = 0;

public int getSize() {
return this.size;
}

public boolean insert(int el) {
current = root;

if (current == null) {
root = new TreeNode(el);
} else {
parent = null;
current = root;

while (current != null) {
if (el < current.element) {
parent = current;
current = current.left;
} else if (el > current.element) {
parent = current;
current = current.right;
} else {
return false;
}
}

if (el < parent.element) {
parent.left = new TreeNode(el);
}
if (el > parent.element) {
parent.right = new TreeNode(el);
}
}

this.size++;
return true;
}

public boolean search(int el) {
current = root;
while (current != null) {
if (el < current.element) {
current = current.left;
} else if (el > current.element) {
current = current.right;
} else {
return true;
}
}
return false;
}

public void inorder() {
inorder(root);
System.out.print("\n");
}

public void inorder(TreeNode curRoot) {
if (curRoot == null) {
return;
}
inorder(curRoot.left);
System.out.print(curRoot.element + " ");
inorder(curRoot.right);
}

public void postorder() {
postorder(root);
System.out.print("\n");
}

public void postorder(TreeNode curRoot) {
if (curRoot == null) {
return;
}
postorder(curRoot.left);
postorder(curRoot.right);
System.out.print(curRoot.element + " ");
}

public void getNumberOfLeaves() {
if (oddOrEven(getNumberOfLeaves(root))) {
System.out.println("Even");
} else {
System.out.println("Odd");
}
}

int getNumberOfLeaves(TreeNode curRoot) {
if (curRoot == null) {
return 0;
}
if (curRoot.left == null && curRoot.right == null) {
return 1;
} else {
return getNumberOfLeaves(curRoot.left) + getNumberOfLeaves(curRoot.right);
}
}

public boolean oddOrEven(int x) {

return (x % 2) == 0;

}

}

//start Driver class

public class Driver {

public static void main(String[] args) {
BinaryTree tree = new BinaryTree();

tree.insert(10);
tree.insert(5);
tree.insert(15);
tree.insert(6);
tree.insert(4);
tree.insert(20);
  
tree.inorder();
tree.getNumberOfLeaves();

tree.inorder();
  
}
  
}

//start TreeNode class

public class TreeNode {
int element;
TreeNode left;
TreeNode right;
  
public TreeNode(int el)
{
this.element = el;
}
}

In: Computer Science

Explain to your fellow student why it is important for a surgical technologist to learn about...

Explain to your fellow student why it is important for a surgical technologist to learn about physics and computers

Please answer the following question. You must have a minimum of 100 words in your original post.

In: Nursing

The five key activities in an object-oriented design process are: a. Define the context and modes...

The five key activities in an object-oriented design process are:

a. Define the context and modes of use of the system;
b. Design the system architecture;
c. Identify the principal system objects;
d. Develop design models;
e. Specify object interfaces.

Please give me an explanation and example in detail for the five activities.

In: Computer Science

There are THREE common ISO certificates for surgical masks. What are they? Explain.

There are THREE common ISO certificates for surgical masks. What are they? Explain.

In: Operations Management

do you think biological processes influence physical and mental growth across a lifetime or do you...

do you think biological processes influence physical and mental growth across a lifetime or do you feel that our environmental surroundings affect this change

In: Psychology