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
What is the use of comma and semicolon with print statement ?​
Natasha2012 [34]

Answer:

The use of a comma and semicolon with print statement tells the computer that the program or specific line is ending.

Explanation:

So for example, with a python program if you write print("Hello, World"); the semicolon tells the computer that, that command ends at the semicolon.

8 0
3 years ago
MICR is an input or output devices
Nataly [62]

Explanation:

If a device is putting data into the computer in the form of text, sound, images, button presses etc. then it is an input device, if the device is outputting things from the computer such as sound, movement, printing, images etc., then it is an output device. ... Therefore it is an input device.

8 0
3 years ago
It is the "executable" phrase of Word<br>Wide Web with dynamic applications,?<br>​
Mkey [24]

Answer:

It is the “executable” phrase of Word Wide Web with dynamic applications, interactive services, and “machine-to-machine” interaction. In Web 3.0, computers can interpret information like humans and intelligently generate and distribute useful content tailored to the needs of users.

4 0
3 years ago
A major weakness of a lot of file processing systems is that ____.
Gnesinka [82]

They are several weaknesses or disadvantages of file processing systems but the major weakness is data redundancy and inconsistency. By data redundancy, I mean duplication of data. There are no better methods to validate insertion of duplicate data in file systems. Data redundancy can also increase the chance for errors.






7 0
4 years ago
একটা ছবি কতটি কথার সমান?
OlgaM077 [116]

Answer:

একটি ছবির মূল্য 84.1 শব্দের

Explanation:

8 0
3 years ago
Other questions:
  • Which ethernet cabling standard defines an ethernet network that uses cat 3 or better utp cabling, operating at 10mbps?
    8·1 answer
  • What is one characteristic of a logic problem? A). a problem that can have three solutions B). a problem that can be solved in a
    5·1 answer
  • Increasing your margins will increase the amount of space you have to type text on your document. Please select the best answer
    10·1 answer
  • You load an image file into a numpy array and look at its shape, which is (433, 650). What does this indicate?
    13·1 answer
  • What icons in the toolbar change the look of the presentation text? It’s either Drawing, Formatting,Presentation, or Standard
    9·2 answers
  • Which options can be adjusted in the print settings?
    8·2 answers
  • I need to convert seconds since Unix Epoch so like the year, month, day, hour, minute, and second but I cannot figure it out. If
    14·1 answer
  • A data table is a range that displays what?
    15·2 answers
  • What is the first thing you should do when you open a savings account
    11·1 answer
  • Jorge, a sports statistician for soccer, has kept track of how many shots-on-goal each player on a team made in each game. This
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!