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
andrew-mc [135]
3 years ago
10

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 account earn compound interest for a certain number of years. The formula for calculating the balance of the account after a specified number of years is: A-P(1+m)nt The terms in the fomula are: o A is the amount of money in the account after the specified number of years. o P is the principal amount that was originally deposited into the account. o ris the annual interest rate. o n is the number of times per year that the interest is compounded. o t is the specified number of years. Write a program that makes the calculation for you. The program should ask the user to input the following: o The amount of principal originally deposited into the account o The annual interest rate paid by the account o The number of times per year that the interest is compounded (For example, if interest is compounded monthly, enter 12. If interest is compounded quarterly, enter 4.) o The number of years the account will be left to eam 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. 162 Note: The user should enter the interest rate as a percentage. For example, 2 percent would be entered as 2, not as.02. The program will then have to divide the input by 100 to move the decimal point to the correct position.
Computers and Technology
1 answer:
Talja [164]3 years ago
8 0

Answer:

def main():

   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: "))

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

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

main()        

Explanation:

  • Calculating the balance of the account after a specified number of years  with the help of the formula:
  • amount = principal*(1+(rate*.01)/num)**(num*years)  
You might be interested in
Is backing up computer files done on the hard drive?
8_murik_8 [283]
Yes but if the hard drive stops working you will lose your files so it's better to backup your files to a cloud like iCloud by Apple.
5 0
3 years ago
Read 2 more answers
What output is produced by
Natasha_Volkova [10]

Answer:

The answer to this question is given below in the explanation section. the correct option is C.

Explanation:

This is Java code statement:

System.out.print("Computing\nisInfun");

The output of this code statement is

Computing

isInfun

However, it is noted that the C option is not written correctly, but it is guessed that it will match to option C.

This Java code statement first prints "Computing" and then on the next line it will print "isInfun" because after the word "Computing" there is a line terminator i.e. \n. when \n will appear, the compiler prints the remaining text in the statement on the next line.

4 0
3 years ago
The instructions in a program, when expressed in Python, ...
sergejj [24]

Answer:

can only be carried out by computers, as long as an interpreter is available which one is it?

Explanation:

The interperetor needed is called CPython, this is the standard C implementation of the language.

7 0
2 years ago
A unit of measurement that describe the rate that electricity flows through a wire is an
Savatey [412]
AMPERE - a unit of measure for the flow of the current in a circut
8 0
3 years ago
What is the exact number of bytes in system of memory that contains (a) 64K bytes (In Binary)(b) 32M bytes
VashaNatasha [74]

Answer:

64 K bytes = 65536 bytes

32 M bytes = 33554432 bytes

Explanation:

The question expect the number of bytes in binary instead of decimal. So this is important to understand that:

  • 1K bytes = 1024 bytes (in binary)

Therefore,

  • 64 Kb = 64 x 1024 =  65536 bytes

Using the similar calculation logic, we know

  • 1M bytes = 1024 x 1024 = 1048576 bytes (in binary)

Therefore,

  • 32 M bytes = 32 x 1048576 =  33554432 bytes
5 0
3 years ago
Other questions:
  • What network setting do i need for a workgroup?
    5·1 answer
  • What are the two main things an operating system does?
    14·1 answer
  • What do you believe are the motives of a cyber criminal? Why?
    15·1 answer
  • 4. Together, what do the divisions of the DHSMV do? A. Make sure lines are long B. Use more money than other government organiza
    14·1 answer
  • (You don’t have to answer it’s just for you for points. Here is you’re riddle)
    9·2 answers
  • At the beginning of a chapter in a book, the first letter often appears larger than the other text on the page. This
    15·1 answer
  • What is the difference between i++ and ++ii?
    6·1 answer
  • A row in a table _____? for computer class and i’m in the middle of a test!
    14·1 answer
  • What is missing in the following program in order to have the output shown?
    15·2 answers
  • Give an essay on a way I can be a better person. If not correct I will refund. Best answer gets brainiest. Detailed, 5 sentience
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!