Answered step by step
Verified Expert Solution
Question
1 Approved Answer
VBA Function Modeling: The assignment is attached, needs to be done in excel FI 413 Spring 2017 Assignment #4 Due: Monday, April 17, at 9:30am
VBA Function Modeling: The assignment is attached, needs to be done in excel
FI 413 Spring 2017 Assignment #4 Due: Monday, April 17, at 9:30am You may work with up to two other students. However, you are allowed to work in groups of two, or alone if you please. Please turn in ONLY one assignment per group. Instructions: Please upload to D2L prior to the deadline: 1) a copy of your workbook to D2L (saved as a Macro-enabled workbook) and 2) copy/paste your code for the following four functions into a word document and upload that as well. 1) Write a VBA function which takes the user input x and calculates 5 4 + 7. Remember that you can calculate a square root by raising something to the 0.5 power or using VBA's SQR function. 2) Stock returns in continuous time are calculated as the natural logarithm of next period's price divided by this period's price, or ln(P1/P0). Write a VBA function which takes user inputs for P1 and P0 and returns the continuously compounded return. Hint: You can take the natural logarithm using the VBA function Log() or, depending on your version, the Excel function Application.Ln() might also work. For Parts 3 and 4, do NOT use the built-in Application.FV function! 3) Write a function to calculate the future value of a lump sum called FVmodeling(deposit, t, LIBOR). For your three inputs: 1) Deposit will be the PV today, and 2) time will be equal to the number of periods. We want this function to work like Excel's FV or future value function, except that there will be no payments and therefore no issues with annuity/annuity due. Also, design the program so that PVs and FVs are all positive (since we are only worried about a lump sum). For your third input we will use LIBOR to calculate a variable rate. Specifically, the function will use the LIBOR rate (input by the user as the third parameter above) and will estimate \"r\" for the future value calculation based on the following rate schedule: -For initial deposits of less than $100, the rate will be LIBOR + 0.4% -For initial deposits from $100 up to $1,0001, the rate will be LIBOR + 0.9% -For initial deposits from $1,000 up to $10,000, the rate will be LIBOR + 2.7% -For initial deposits from $10,000 up to $100,000, the rate will be LIBOR + 3.5% -For initial deposits $100,000 and up, the rate will be LIBOR + 5.1% 1 E.g., "up to $1,000" means the threshold will stop at $999.99. 4) Use the function you wrote in #3 to write a FV calculator as a Sub with pop-up boxes. Round to two decimal places. Hint: You will need to use three input boxes, one message box, and the FVmodeling function that you wrote in #3. Again, do not use the built-in Excel Application.FVStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started