Defining functional behavior

Our Calculator module defines two functions:

  • The interest function is used to calculate the interest for a deposit amount, amount, with the specified interest rate, rate, for a full investment period.
  • The rate function is used to calculate the interest rate for which you can invest the deposit amount, amount, and receive the interest amount, interest.

Remember that interest and rate may mean completely different things outside the context of Calculator.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.136.170