1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dybincka [34]
3 years ago
15

When a bank account pays compound interest, it pays interest not only on the principal amount that was deposited into the accoun

t, but also on the interest that has accumulated over time. Suppose you want to deposit some money into a savings account, and let the balance of the account after a specified number of years is:
A equals P (1 plus r over n )to the power of n t end exponent

The terms in the formula are:
A is the amount of money in the account after the specified number of years.
P is the principal amount that was originally deposited into the account.
r is the annual interest rate.
n is the number of times per year that the interest is compounded.
t is the specified number of year.

Write a program that makes the calculations for you. The program should ask the user to input the following: The amount of principal originally deposited into the account. The annual interest rate paid by the account The number of times per year that the interest is compounded (For example, if interest is compounded monthly, enter 12. If the interest is compounded quarterly, enter 4.) The number of years the account will be left to earn interest. Once the input data has been entered, the program should calculate and display the amount of money that will be in the account after the specified number of years.
Computers and Technology
1 answer:
Tanzania [10]3 years ago
3 0

Answer:

Python code is given below

Explanation:

#This program will calculate compound interest earn by the account after a specified number of years

def main():

   #Asking the user for input

   principal = float(input("Enter the amount of principal amount to be deposited: "))

   rate = float(input("Enter annual interest rate paid by the account: "))

   num = int(input("Enter the number of times per year that the interest is compunded: "))

   years = float(input("Enter the number of years the account will be left to earn interest: "))

   

   #Calculating the balance of the account after a specified number of years

   amount = principal*(1+(rate*.01)/num)**(num*years)

   #Printing result

   print("The amount of money will be in the account after ", years, "years:", round(amount,2))

main()          #calling main() function

You might be interested in
Listed three functions tht are ysed in a spreadsheet​
Karo-lina-s [1.5K]

Answer:

The sum function

The count function

The trim function etc.

5 0
2 years ago
How do i delete a question ?
seraphim [82]

i think we can't do that

7 0
3 years ago
__________________ is a technique can be beneficial when driving next to parked vehicles or approaching signal lights or interse
NISA [10]

Answer:

Covering the brakeis a technique can be beneficial when driving next to parked vehicles or approaching signal lights or intersections

7 0
3 years ago
These commands are established by combatant commanders when authorized by the Secretary of Defense through the Chairman of the J
Romashka-Z-Leto [24]

Answer:

b. Combatant Command

Explanation:

The Combatant commands are commands which are primarily authorized by the Secretary of Defense with approval from the President. They are then executed by the Combatant Commanders (CCDR's), who receive information from the higher authorities through the Chairman of the Joint Chiefs of Staff. The combatant commanders head the combatant commands and are usually four-star Generals. The combatant commands have a broad and continuing purpose.

They ensure synergy for the command and control of the United States military forces. They are formed on the basis of geography or function. The United States Defense Department has eleven (11) combatant commands which serve either a geographic or functional purpose.

8 0
4 years ago
Whats 12/29 divided by 12/34
Mnenie [13.5K]

Answer:34/29 or 1.172413793

8 0
3 years ago
Read 2 more answers
Other questions:
  • How do u change the level of education on Brainly. cuz i just finished elementry
    9·2 answers
  • When making college visits, you may be able to....
    9·2 answers
  • Approximately what percentage of the world population owns a smartphone?
    9·1 answer
  • How many typefaces should you use in business documents?
    9·2 answers
  • What is the program filename and extension of file explorer?
    9·1 answer
  • Could someone tell me what this means in python? Thanks
    6·1 answer
  • How many bytes are in a yottabyte. (don't look it up)
    10·1 answer
  • What are the first two models, e.g. diagrams that affect the entire system, that are built during the CoreProcess to discover an
    5·1 answer
  • ANSWER QUICKLIY
    5·2 answers
  • Write pseudo code that performs the following: Ask a user to enter a number. If the
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!