help, Python Programming

When investing money, an important concept to know is compound interest. The equation FV = PV (1+rate)periods . This relates the following four quantities.

The present value (PV) of your money is how much money you have now.
The future value (FV) of your money is how much money you will have in the future.
The interest rate per period (rate) is how much interest you earn as a percentage. The period is length of time between interest payments.
The number of periods (periods) is how many periods in the future this calculation is for.

Finish the following code, run it, and submit the printed number. Provide at least four digits of precision after the decimal point.

def future_value(present_value, annual_rate, periods_per_year, years):
rate_per_period = annual_rate / periods_per_year
periods = periods_per_year * years

# Put your code here.

print "$1000 at 2% compounded daily for 3 years yields $", future_value(1000, .02, 365, 3)
Posted Date: 10/19/2012 5:54:17 PM | Location : United States







Related Discussions:- help, Assignment Help, Ask Question on help, Get Answer, Expert's Help, help Discussions

Write discussion on help
Your posts are moderated
Related Questions
Modules As you start to write larger programs, you will want  to save the function de?nitions in multiple ?les, collected together according to what  they  do.  So, for exampl

For this assignment, you are to: 1.    Modify the output format of your Python script from Assignment 1 to match the input format of your C program from Assignment 2. 2.    W

Worked example 1   Let's examine what  happens when  we compute the following Python code:   def p(x, y): z = x*x - y return z + 1/z   >>> p(1.0, 2.0) -2.0

Structured data We will often  want  to work  with  large  groups of data.   Rather  than  providing  each  number its own  value,  we need  to manage the data  into natural s

python program of motion of a particle in viscus medium

Common Errors and Messages Here are some common Python errors  and error  messages to look  out for. Please let us give if you have any favorite additions for this list.

I have python game project which is due by next Tuesday. Do you think that I can get it on time if I order today?

Your assignment for the semester will involve the development of a system for drawing trees using the Python programming language and the turtle graphics module (turtle.py). Comple

De?nition   A method de?nition has the abstract form: def ( , ..., ): ...   There are essentially three parts: is a name for

Booleans   Before we talk about  conditionals, we require  to clarify the Boolean  data  type.  It has two values False and True. Typical statement that have Boolean values