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

Question utilizing the concepts learned throughout the

Question: Utilizing the concepts learned throughout the course, write a Final Paper on one of the following scenarios: • Option One: You are a consultant with 10 years experience in the health care insurance industry. A ...

Discussion your initial discussion thread is due on day 3

Discussion: Your initial discussion thread is due on Day 3 (Thursday) and you have until Day 7 (Monday) to respond to your classmates. Your grade will reflect both the quality of your initial post and the depth of your r ...

Question financial ratios analysis and comparison

Question: Financial Ratios Analysis and Comparison Paper Prior to completing this assignment, review Chapter 10 and 12 in your course text. You are a mid-level manager in a health care organization and you have been aske ...

Grant technologies needs 300000 to pay its supplier grants

Grant Technologies needs $300,000 to pay its supplier. Grant's bank is offering a 210-day simple interest loan with a quoted interest rate of 11 percent and a 20 percent compensating balance requirement. Assuming there a ...

Franks is looking at a new sausage system with an installed

Franks is looking at a new sausage system with an installed cost of $375,000. This cost will be depreciated straight-line to zero over the project's five-year life, at the end of which the sausage system can be scrapped ...

Market-value ratios garret industries has a priceearnings

(?Market-value ratios?) Garret Industries has a? price/earnings ratio of 19.46X a. If? Garret's earnings per share is ?$1.65?, what is the price per share of? Garret's stock? b. Using the price per share you found in par ...

You are planning to make annual deposits of 4440 into a

You are planning to make annual deposits of $4,440 into a retirement account that pays 9 percent interest compounded monthly. How large will your account balance be in 32 years?  (Do not round intermediate calculations a ...

One year ago you bought a put option on 125000 euros with

One year ago, you bought a put option on 125,000 euros with an expiration date of one year. You paid a premium on the put option of $.05 per unit. The exercise price was $1.36. Assume that one year ago, the spot rate of ...

Common stock versus warrant investment tom baldwin can

Common stock versus warrant investment Tom Baldwin can invest $6,300 in the common stock or the warrants of Lexington Life Insurance. The common stock is currently selling for $30 per share. Its warrants, which provide f ...

Call optionnbspcarol krebs is considering buying 100 shares

Call option  Carol Krebs is considering buying 100 shares of Sooner Products, Inc., at $62 per share. Because she has read that the firm will probably soon receive certain large orders from abroad, she expects the price ...

  • 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