Problem Solving with Computers (CS 135)
Dr. William J. Joel, WS 110, 7-9353

Project No. 4 (15 points)
Due Thursday, November 9, 2006

 

Problem

In class we developed a VBA function that would determine the number of months required to pay off as bank loan given the initial principal, an interest rate, and a monthly payment amount. For this project, you are to create a function this will return the monthly payment amount, given an initial balance, a yearly interest rate, and the number of months to pay off the loan.

Task

  • Develop an algorithm (method) for a function that will accept as input an initial loan amount, a yearly interest rate, and the number of months to pay off the loan; and will return a monthly payment amount..
  • Represent this algorithm both using pseudocode and as a flowchart.
  • Implement your function as part of a workbook's code module.
  • Create a worksheet to prove your function works using the following data
    • Initial balance: $50,000
    • Yearly interest rate: 8%
    • Number of months: 180
  • Submit copies of your ...
    • function (pseudocode and flowchart),
    • source code from VB editor, and
    • completed worksheet with and without formulas turned on.

    Notes

    • Feel free to do more than what is asked above. You will neither lose nor gain points for the extra work.
    • To "turn on formulas" ...
      • From the Tools menu choose Options ... 
      • Click on the View tab 
      • Under Window Options check Formulas 
      • Click on OK