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
this is a problem that I have how would I go about solving it? Stadium Seating There are three seating categories for a BC softball game. Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Write a program that asks how many tickets for each class of seats were sold. Then display the total number of tickets sold, the amount of income generated from each class and the total ticket sales. Note: Use constants for the seat prices. Sample output: WELCOME TO THE BROWARD COLLEGE STADIUM!! Please enter the number of Class A seats sold: 100 Please enter the number of Class B seats sold: 200 Please enter the number of Class C seats sold: 150 ************************************************** Total number of tickets sold: 450 Income Generated: Class A:$1500.00 Class B: $2400.00 Class C: $1350.00 Total: $5250.00
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
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