Python Programming: An Introduction to Computer Science, 3rd Ed.
Python Programming: An Introduction to Computer Science, 3rd Ed.
3rd Edition
ISBN: 9781590282755
Author: John Zelle
Publisher: Franklin, Beedle & Associates
bartleby

Videos

Question
Book Icon
Chapter 2, Problem 7PE
Program Plan Intro

Computing compound interest

Program Plan:

  • Declare a main function. Inside the main function,
    • Print the statement.
    • Get the initial amount from the user.
    • Get the interest rate form the user.
    • Get the yearly investment from the user.
    • Get the number of years form the user.
    • Iterate through for loops.
      • Calculate the principal amount for yearly investment.
      • Calculate the principal amount.
      • Print the result.
  • Call the main function.

Blurred answer
Students have asked these similar questions
Suppose you have an investment plan where you invest a certain fixedamount every year. Modify futval . py to compute the total accumulationof your investment. The inputs to the program will be the amount to investeach year, the interest rate, and the number of years for the investment.
Suppose you have an investment plan where you invest a certain fixed amount every year. Modify futval.py to compute the total accumulation of your investment. The inputs to the program will be the amount to invest each year, the interest rate, and the number of years for the investment. Please step by step
Suppose that the rent for an apartment is $1000 this year and increases 3% every year. Write a program that computes the rent in five years and the total rent for one year starting five years from now
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Java random numbers; Author: Bro code;https://www.youtube.com/watch?v=VMZLPl16P5c;License: Standard YouTube License, CC-BY