Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Basic Finance Expert

Finance Modeling Assignment -

PROBLEM I - Maverick numbers are named after a famous student who studied Financial Modeling at the University of Texas at Arlington in the 21st century. Maverick numbers are defined as follows.

M(0) = 0

M(1) = 1 + M(0)

M(2) = 2 + M(1)

M(3) = 3 + M(2)

...

M(n) = n + M(n - 1)

(a) Write a function that computes the Maverick number for a user-provided n. You must use recursion in this function.

Name this function "Maverick" and use it to compute Maverick numbers for n = 1, 2, 3, 4, 10, 75, and 100.

(b) Now rewrite the function but you must use Do While in the function. Name this function "Maverick2" and use it to compute Maverick numbers for n = 1, 2, 3, 4, 10, 75, and 100.

PROBLEM II -

Write a macro that uses the Maverick function you have written in Problem I.

- Name your macro as MaverickCalc.

- This macro should ask the user to input the number n as follows: Please input the number n:

- The title of the box that asks for the above input should be: Input for Maverick Number Calculator

- No default input value should be provided for n.

- The result should be displayed in a message box that states the following.

- The Maverick number for n is: (Note that the number n above should be displayed as the actual number provided by the user.)

- The title of the box that provides the above output should be: Maverick number calculator

- The above output should be displayed in an information box (i.e., you need to use VbInformation)

PROBLEM III -

Consider an annuity that pays a fixed amount of C every time period for n periods. If the discount rate is r, the PV of this annuity is:

PV = C/(1 + r) + C/(1 + r)2 + C/(1 + r)3 + ... C/(1 + r)n

(a) Write a function to compute the PV of an annuity. You must use recursion in this function.

Name the function "AnnuityPV" and use it to compute the PV of an annuity that pays $1,000 at the end of each year for the next 7 years. The discount rate is 8% per year.

(b) Now rewrite the function but you must use Do While in the function. Name this function "AnnuityPV2" and use it to compute the PV of an annuity that pays $1,000 at the end of each year for the next 7 years. The discount rate is 8% per year.

PROBLEM IV -

Write a macro that uses the AnnuityPV function you have written in Problem III.

- Name your macro as AnnuityPVCalc.

- This macro should ask the user for the inputs: C, r, and n.

- These inputs should be asked for as follows:

  • Please input the cash flow:
  • Please input the interest rate:
  • Please input the number of periods:

- The title of each of the box that asks for the above input should be: Input for Annuity PV Calculator

- For each of the above, the following default values should be supplied. (User can overwrite these default values to provide the new values.)

- Cash flow of 1,000, interest rate of 5% or 0.05, and number of periods as 10.

- The result should be displayed in a message box that states the following.

- The present value of the annuity is:

- The title of the box that provides the above output should be: Annuity PV Calculator Output

PROBLEM V -

Fibonacci numbers is a sequence of numbers named after Italian mathematician Leonardo Pisano, better known by his nickname of Fibonacci. In this sequence, every number after the first two is the sum of the two preceding ones. The Fibonacci sequence is defined as follows.

F(0) = 0

F(1) = 1

F(2) = F(1) + F(0) = 1 + 0 = 1

F(3) = F(2) + F(1) = 1 + 1 = 2

F(4) = F(3) + F(2) = 2 + 1 = 3

...

In general,

F(n) = F(n - 1) + F(n - 2)

Write the Fibonacci function described above. You must use Do While in this function, Use this function to compute the Fibonacci numbers for n = 1, 2, 4, 8, 12, 16, 20, and 24.

PROBLEM VI -

Write a macro that uses the Fibonacci function you have written in Problem V.

- Name your macro as FibonacciCalc.

- This macro should ask the user to input the number n as follows:

Please input the number n:

- The title of the box that asks for the above input should be:

Input for Fibonacci Calculator

- No default input value should be provided for n.

- The result should be displayed in a message box that states the following.

The Fibonacci number for n is:

(Note that the number n above should be displayed as the number provided by the user.)

- The title of the box that provides the above output should be:

Fibonacci number calculator

- The above output should be displayed in an information box (i.e., you need to use VbInformation)

Basic Finance, Finance

  • Category:- Basic Finance
  • Reference No.:- M92257835

Have any Question?


Related Questions in Basic Finance

The terms of sale arenbsp59nbspnetnbsp43nbspwhat is the

The terms of sale are 5/9, net 43. What is the effective annual rate of interest?  Enter your answer in percentages rounded off to two decimal points. Do not enter % in the answer box.

You purchase a 15-year bond at a premium of 117292 with a

You purchase a 15-year bond at a premium of $1,172.92 with a 10% semi-annual coupon rate and 8% return. Two years later, you sell the bond. What is the price difference if the interest rates rose 2%? (rounded to 2 decima ...

The required return is 11 the dividend growth rate is 5 the

The required return is 11%, the dividend growth rate is 5%, the retention rate is 60%, and the payout rate is 40%. What is the justified, forward P/E ratio?

What is the present value of a 3-year annuity of 170 if the

What is the present value of a 3-year annuity of $170 if the discount rate is 5%?  (Do not round intermediate calculations. Round your answer to 2 decimal places.)

What is the market price of a bond if the face value is

What is the market price of a bond if the face value is $1,000 and the yield to maturity is 6.2 percent? The bond has a 5.75 percent coupon rate and matures in 12.0 years. The bond pays interest semiannually.

Johnson family has found that the current cost of attending

Johnson family has found that the current cost of attending college is $27,000 per year. How much lump sum amount they should have in their education account so that the 4 years of college is funded? Assume education inf ...

Jane and john doe are twinsnbspjane saves 10000 per year

Jane and John Doe are twins. Jane saves $10,000 per year from age 25 to 34 and nothing from age 35 onward (10 years of saving in total). John saves nothing from age 25 to 34 and $10,000 from age 35 to 64 (30 years of sav ...

Craigs cake company has an outstanding issue of 15-year

Craig's Cake Company has an outstanding issue of 15-year convertible bonds with a $1,000 par value. These bonds are convertible into 80 shares of common stock. They have a 13% annual coupon interest rate, whereas the int ...

Buner corps outstanding bond has the following

Buner Corp.'s outstanding bond has the following characteristics: Years to maturity: 6.0  Coupon rate of interest: 8.0% Face value: $1,000 If investors require a rate of return equal to 12% on similar risk bonds and  int ...

Question - assume that your father is now 40 years old that

Question - Assume that your father is now 40 years old, that he plans to retire in 20 years, and that he expects to live for 25 years after he retires, that is until he is 85. He wants a fixed retirement income that has ...

  • 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