Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

VBA Programming homework:

1. A cosine can be approximated by the following infinite series:

 cosx=1-(x2/2!)+(x4/4!)-(x6/6!)+...


  Write a function that will calculate this for any x and y number of terms.  If y > 85 or y is not a positive integer, return an error.

X

Y

Cos( x)

MyCosine (x,y)

Approximation error

0.31831

9

 

 

 

0.95493

9.5

 

 

 

1.27324

37

 

 

 

1.591549

65

 

 

 

2.228169

88

 

 

 

2. A hybrid linked note is an instrument that provides investors fixed income and equity market.  It is structured by combining a return that is 75% equity and 25% fixed income.  The investment pays the greater of the par value, $1,000, or the price times the 75% percentage increase in the S&P 500 plus 25% the return on the Barclays US Aggregate Index.

Write 2 functions (hlnPayoff, hlnReturn).  The first, hlnPayoff, calculates the security payoff at maturity.  The second, hlnReturn, calculates the annualized return assuming continuous compounding.  The function hlnReturn should call the payoff function.

Price

Years

SP5000

SP5001

Barclay US Agg0

Barclay US Agg1

Payoff

Return

953

1

1783

1995

1810

1887

 

 

914

2

1298

1498

1909

1942

 

 

811

5

1288

1568

1710

1887

 

 

733

8

1335

1270

1612

1923

 

 

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91724137

Have any Question?


Related Questions in Computer Engineering

How is the study of how firms decisions about prices and

How is the study of how firms' decisions about prices and quantities depend on the market conditions they face, the field of industrial organization, and the cost of production.

Mccann co has identified an investment project with the

McCann Co. has identified an investment project with the following cash flows. Year Cash Flow  1     $800   2    1,090   3    1,350   4    1,475  a. If the discount rate is 7 percent, what is the present value of these c ...

Decision support systemsnbspvary greatly in application and

Decision support systems  vary greatly in application and complexity, but they all share specific features. A typical Decision support systems has four components: data management, model management, knowledge management ...

Use the management studio to create a new database called

Use the Management Studio to create a new database called Membership2 using the default settings. (If the database already exists, use the Management Studio to delete it and than recreate it)

Question suppose host a has 10 packets with sequence

Question : Suppose host A has 10 packets with sequence numbers 1 to 10 to be transmitted to host B. Now imagine that the packets numbered 2 and 7 are lost when they were sent the first time. Assume that ACKs are never lo ...

A student raises her hand in class and states i can legally

A student raises her hand in class and states, "I can legally copy any DVD I get from Netflix because Netflix purchased the DVD and the copyright only applies to the company who purchased the product." Explain whether th ...

Select a technology product process hardware software or

Select a technology (product, process, hardware, software, or any combination thereof). Laptop, Tablet, PDA 1. How do you characterize this technology (function, principle of operation, performance, etc.)? 2. Where does ...

The contents of a particular bottle of shampoo marked as

The contents of a particular bottle of shampoo marked as 150 ml are found to be 153 ml at an average, with a standard deviation of 2.5 ml. What proportion of shampoo bottles contain less than the marked quantity? Assume ...

Identify at least two 2 factors that have led to the

Identify at least two (2) factors that have led to the explosive growth of digital crime over the past a few decades. Next, describe the most common forms of digital crime, and give your opinion as to why those forms you ...

The sales figures for a business are as follows for the

The sales figures for a business are as follows for the first six months of the year: R40 000, R44 000, R52 000, R64 000, R80 000, R84 000. The owner believes that the sales curve can be approximated by a quadratic funct ...

  • 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