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
What electronic device can represent a KiloByte?
katovenus [111]

Military specifications often call for electronic devices to be able to withstand accelerations of 10 g. to make sure that their products meet this specification, manufacturers test them using a shaking table that can vibrate a device at various specified frequencies and amplitudes. if a device is given a vibration of amplitude 9.4 cm, what should be its frequency in order to test for compliance with the 10 g military specification? the acceleration of gravity is 9.81 m/s 2 .

7 0
3 years ago
If int a = 4, int *b = &amp;a , int **c= &amp;b;<br> what is the value store in c.
Elenna [48]

Answer:

5.

Explanation:

6 0
3 years ago
Which of the following is a group of email names and addresses used for mass distribution of a message?
Jet001 [13]

Answer:

Option D is the correct answer for the above question.

Explanation:

Email list (as the name suggests) is defined as the set of an Email address. It is also the group of address which is needs for message distribution because an Email address is the only necessary part to send the mail which is also called the message. When a user wants to send the mass Email or message then he needs a list of email which can be filled at the "TO" or "CC" or "BCC" part of the compose mail and it can be able to send the mass message.

The above question asked about the list which is useful for the mass message then the answer is an Email list which is stated from the option D. Hence option D is the correct answer while other is not because--

  • Option A states the actor list which is not required to send the mail.
  • Option B states the client list which is not required to send the mail.
  • Option C states the chat list which is not required to send the mail.
3 0
3 years ago
What are the advantages of using a vpn?​
Fantom [35]

Answer:

Changing ip address to avoid ip ban. keeping your personal info safe while on public connections

Explanation:

Looked it up.

5 0
2 years ago
Data_____is defined as the condition in which all of the data in the database are consistent with the real-world events and cond
mezya [45]

Answer:

d. integrity

Explanation:

Data integrity is defined as the condition in which all of the data in the database are consistent with the real-world events and conditions.

Data integrity can be used to describe a state, a process or a function – and is often used as a proxy for “data quality”. Data with “integrity” is said to have a complete or whole structure. Data integrity is imposed within a database when it is designed and is authenticated through the ongoing use of error checking and validation routines. As a simple example, to maintain data integrity numeric columns/cells should not accept alphabetic data.

4 0
3 years ago
Other questions:
  • Which should you use to find a saved file?
    15·2 answers
  • Computer hardware without software is useless while computer software without hardware is meaningless. Discuss. Plz provide exam
    15·1 answer
  • Who's YouTube creator?
    10·2 answers
  • Someone asks you for help with a computer that hangs at odd times. You turn it on and work for about 15 minutes, and then the co
    10·1 answer
  • PLZZZ HELP!!!
    9·1 answer
  • In Outlook 2016, the Tell Me function can be accessed by
    15·2 answers
  • Write a python statement that print the number 1000
    6·1 answer
  • Helppppppppppppppppppppppppppppppppp
    13·2 answers
  • Which of the following statements is true about the code used for software development?
    7·1 answer
  • Which of the following terms refers to the area of the hard drive used for virtual memory?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!