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
Olin [163]
3 years ago
10

write a function interest() that takes one input, a floating-point interest rate (e.g., 0.06, which corresponds to a 6% interest

rate). your function should compute and return how long (in years) it will take for an investment to double in value. note: the number of years it takes for an investment to double does not depend on the value of the initial investment.
Computers and Technology
1 answer:
Novay_Z [31]3 years ago
8 0

Code:

def interest():

   interest_rate = 0.06

   investment = input(int('Investment: '))

   yield = 0

   year = 0

   while (yield < investment):

       year += 1

       yield  = investment * interest_rate

   print (year)

NOTE: i wrote this code assuming that the investment for the next year is the same as the first year and so forth

You might be interested in
What does this say:<br> √ans
dangina [55]

Answer: I do belive is says Vans

Explanation:

5 0
3 years ago
Read 2 more answers
To calculate perimeter of a rectangle​
quester [9]

a+b+c+d= perimeter of a rectangle

5 0
3 years ago
Read 2 more answers
Which is a example of fixed expense <br><br> -food<br> -clothing<br> -entertainment<br> -rent
Artemon [7]
Salutations!

<span>Which is an example of fixed expense?

Rent is an example of fixed expense, It doesn't matter whether you sell a widget or produce thousand of them, you must still pay the rent in any </span><span>circumstances.
</span>
Hope I helped.
6 0
4 years ago
Read 2 more answers
Which format is used for audio files?<br><br> avi<br> jpg<br> ogg<br> xml
Ghella [55]

Answer:

avi

Explanation:

AVI stand for Audio Video Interleav,avi filename extension is a multimedia container format introduced by Microsoft in November 1992 as part of its Video for Windows software.

3 0
3 years ago
Read 2 more answers
Designations at the end of file names such as .docx and .html are called
Amanda [17]

Answer:

Designations at the end of file names such as .docx and .html are called. File extensions.

Explanation:

7 0
3 years ago
Other questions:
  • Consider the following list.
    5·1 answer
  • What is the role of the ieee in computer networking and wireless communications?
    14·1 answer
  • If I want to make it look like slide number one is turning a page to slide number two, what effect needs to be applied?
    13·1 answer
  • What table element represents a field within a record in powerpoint A column B Row C header D footer
    14·1 answer
  • What does wireless technology use to transmit signals?
    7·1 answer
  • A website for a certain political party or candidate is likely to have unbiased
    6·1 answer
  • Write a python program to find factorial, use exception handling and display an appropriate message if the user inputs alphabets
    7·1 answer
  • State three advantage and disadvantages of Laser printer ​
    7·1 answer
  • What is meant by editing a document​
    5·2 answers
  • Becca is working on a program that will store data. The program will need quick access to data and data persistence is not impor
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!