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 6PE
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 number of years form the user.
    • Iterate through for loops.
      • Calculate the principal amount.
      • Print the result.
  • Call the main function.

Blurred answer
Students have asked these similar questions
Write a program that will Input the name , position of the employee , Input the rate per hour, hours worked. Compute the Gross pay for an employee.
Write a program that computes the rent in five years and the total rent for one year starting five years from now
Write a C++ program which calculates percentage of three subjects and then prints, the student is Fail if marks are less than 50, got D grade if marks are equal to 50 percent or above, student got C grade if marks are 60 percent or above, student got B grade if marks are equal to 70 percent or above and student got A grade if marks are equal to 80 percent or above.
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