kjk5747462 kjk5747462
  • 21-08-2020
  • Computers and Technology
contestada

write a python program to calculate the compound interest

Respuesta :

ronhagrid310
ronhagrid310 ronhagrid310
  • 21-08-2020

Answer:

initialPrincipal = float(input("Please enter your initial principal:"))

interestRate = float(input("Please enter your interest rate:"))

timePeriod = float(input("Please enter your number of times interest applied per time period:"))

elapsedPeriod = float(input("Please enter your number of time period elapsed:"))

finalAmount = initialPrincipal*(1 + interestRate/timePeriod)^(timePeriod*elapsedPeriod)

print("Your final amount would be:", finalAmount)

Answer Link

Otras preguntas

Use properties to find the sum or product of 6 X 107
1. Do you think the style of the book suggests anything about its value? Explain.
The Peloponnesian War lasted for almost ten years. twenty years. thirty years. forty years.
Why is glucose not a polymer ?
Who was the heavy hydrogen discoverer?
What does 10/12 equal to?
Which event led the United States to enter World War I on the side of the Allies?
between 1150 B.C. and 400 A.D there were a number of civilizations. which of the following civilizations is the OLDEST ? A. Olmec civilization of Mexico B. Gree
why do overlapping niches lead to competition ?
Which line is a graph of the equation 2x + 5y = –10?  A.line a  B.line b  C.line c  D.line dNeed help plz :\ been stuck on it for a while now