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
NEED HELP FAST!!
tensa zangetsu [6.8K]
Equation #1 - move 3b to the right side. Now you're left with a=3b + 4 plug in that for a in equation #2. Once you figure out a, plug a in to equation #1 and find b.

Message me if you need more help
3 0
3 years ago
We are told 5 miles is 8km. Convert 12.5miles to km
pychu [463]
10 miles = 16km
2.5 miles = 4km

answer = 20km
8 0
3 years ago
Read 2 more answers
If u=(0,3), what is the magnitude of 3u
Rina8888 [55]

Answer:

<em>9.</em>

Step-by-step explanation:

3 * √)0^2 + 3^2)

= 3*3

= 9.

4 0
4 years ago
Solve: S = n/2 (a+b) for b
IgorC [24]

Answer:

b = -n/(2-S) -a

Step-by-step explanation:

S = n/2 (a+b)

divide both sides by (a+b)

S/(a+b) = n/2

flip the equation on the left (it is the same equation just negative)

-(a+b)/-S = n/2

divide both sides by -S

-a-b = n/(2-S)

add a to both sides

-b = n/(2-S) +a

flip the sign (multiply/divide by -1)

b = -n/(2-S) -a

4 0
4 years ago
Antoine stands on a balcony and throws a ball to his dog, who is at ground level.
sdas [7]

Answer: The ball will hit the ground 4 seconds after being thrown.

Step-by-step explanation:

By definition, the ball hits the grounds when the height is zero.

Then, knowing that the Quadratic function that models that situation is:

h(x)=-2x^2+4x+16

You can make it equal to zero:

0=-2x^2+4x+16

Now you can use the Quadratic formula:

x=\frac{-b\±\sqrt{b^2-4ac} }{2a}

In this case you can identify that:

a=-2\\b=4\\c=16

Therefore, knowing these values, you can substitute them into the Quadratic formula and then evaluate, in order to find the solution:

x=\frac{-4\±\sqrt{4^2-4(-2)(16)} }{2(-2)}\\\\x_1=4\\x_2=-2

Choose the positive solution.

Then, the ball will hit the ground 4 seconds after being thrown.

5 0
4 years ago
Other questions:
  • H(x) = 2x^2 =4; Find h(-10)
    5·1 answer
  • Complete the inequality statement. <br> 13.01 ___ 13.1 <br> &lt; <br> &gt; <br> =
    13·2 answers
  • Which two transformations are applied to pentagon ABCDE to create A'B'C'D'E'?
    10·2 answers
  • Round the number to the hundredths place. 26,379.87492
    9·1 answer
  • 35 equals:<br> A. 53<br> B._35<br> D.243<br> E. 81
    8·2 answers
  • What is the last calculation that should be done to evaluate <br>4(8 - 6)5² - 6 ÷ (–3)?
    10·1 answer
  • Is 1 equal to or greater then -1?
    14·2 answers
  • What is x?<br> -4(2x-9)+6(-x+1)=-8x-5(3x- 6/5)
    7·1 answer
  • The point (4, −7) is reflected over the x-axis. Its image is reflected over the y-axis. What ordered pair represents the final i
    13·2 answers
  • Which equation represents a liner function?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!