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
Ket [755]
3 years ago
14

Write a program that calculates how many days it takes to accumulate at least $1,000,000 if someone deposits one penny on the fi

rst day, two pennies the second day, four pennies on the third day and continues to double each day. The output should display the number of days
Mathematics
1 answer:
spayn [35]3 years ago
6 0

Answer:

Step-by-step explanation:

Let's do this in Python

day = 1

balance = 0

deposit = 0.01  # first deposit is 1 penny

while balance < 1000000: # execute the loop as long as balance is less than a million dollar

    balance += deposit

    deposit = deposit * 2 # double the deposit for the next time

    day += 1 # add one to day for the next day

print(day) # print out result once loop ends

You might be interested in
ben's grandma gave him $75 in a new piggy bank. Ben will add $15 to his piggy bank each month. find x, the number of months Ben
BartSMP [9]
10 Months is the answer or it’ll be X=10
3 0
2 years ago
(Sumatoria) Si 7 + 14 +...+ 7n = 1617, el valor de n es...
Naily [24]

Answer:

n=2

Step-by-step explanation:

7+14 = 7+7*2

7*2=14

1,617 -7 =1,610

1,610: 14 = 115

Al numero 7 se le  suma 115 veces el numero 14(que es lo mismo que 7*2)

115*14 = 1,610

7+1,610 = 1,617

7 0
3 years ago
I really need help <br> so please help me i am kinda not smart
nika2105 [10]

Answer:

197.97

Step-by-step explanation:

197.97

5 0
2 years ago
Read 2 more answers
Find the distance between 2 and -2.<br> A) -6 <br> B) -4 <br> C) 0 <br> D) 4
IrinaVladis [17]

Answer:

D

Step-by-step explanation:

-2 - 2 = I-4I = 4

5 0
4 years ago
What is the diameter of the inscribed circle of the triangle?
algol13

The value of diameter for the given triangle inscribed in a circle will be 22.

<h3>What is a circle?</h3>

A circle is a geometrical figure which becomes by plotting a point around a fixed point by keeping a constant distance.

In our daily life, we always see circular objects for example our bike wheel.

The longest line which can be drawn inside the circle will be the diameter.

As per the given triangle inscribed a circle.

The length x +2 and 2x - 7 will be the radius of the circle and the sides of the triangle will be the tangent of the circle.

x + 2 = 2x - 7

2 = 2x - x - 7

x = 9

Thus, radius = 9 + 2 = 11

Diameter = 11 x 2 = 22 units.

Hence "The value of diameter for the given triangle inscribed in a circle will be 22".

To learn more about the circle,

brainly.com/question/266951

#SPJ1

3 0
1 year ago
Other questions:
  • A rectangle table is five times as long as it is wide if the area is 245ft2, find the length and the width of the table
    5·1 answer
  • A door delivery florist wishes to estimate the proportion of people in his city that will purchase his flowers. Suppose the true
    9·1 answer
  • sheila mixed 3 ounces of blue paint with 2 ounces of yellow paint. she decided to create 20 ounces of the same mixture how many
    5·1 answer
  • What is the vertex form of the equation? y = – x^ 2 + 12 x – 4<br> show your work.
    7·1 answer
  • What is the square root of r^64?
    5·2 answers
  • In the theory of learning, the rate at which a subject is memorized is assumed to be proportional to the amount that is left to
    6·1 answer
  • Please help struggling
    5·1 answer
  • Write the measure in descending order 0.5m - 480mm - 55cm​
    12·2 answers
  • how do you solve y=x+4 and y=-2x+1 using the subsituation method and show work and please give me the correct answer
    12·1 answer
  • Find the distance between point P and line ℓ.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!