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
What is the area of the white region? Steps please and thank you!
DIA [1.3K]

Answer:the ANS to 4 significant figures is 51.92

Step-by-step explanation:u first find the area of the whole chord which is 150 divided by 360 multiplied by the π × 7^2 subtracted from the area of The triangle by doing 1/2×7×7sin150. I hope it helps

5 0
3 years ago
Order the following decimals from least to greatest. 9.036, 9.982, 9.535
Leona [35]
The order is: 9.036, 9.535, and 9.982.
8 0
3 years ago
Brainliest. follow anything . box of chocolates contains seven milk chocolates and six dark chocolates. Five of the milk chocola
Olenka [21]

Answer:

8/13

Step-by-step explanation:

has the slightly lower numbers meaning 11/13 would be milk chocolate with peanuts, and 8/13 would be the dark chocolate

6 0
3 years ago
Read 2 more answers
In which number does the digit 7 have a value that is 10 times as great as the digit 7 in the number 0.9750
In-s [12.5K]
The digit 7 would be ten times greater than the digit 7 in number 0.9750 in any number with 7 in the tenths place, for example
0.723
0.7669
0.775
1.7899
7 0
3 years ago
If 101! = (99!)x, then x = ?
beks73 [17]
99!x=101!\ \ \ /:99!\\\\x=\frac{101!}{99!}\\\\x=\frac{99!\cdot100\cdot101}{99!}\\\\x=100\cdot101\\\\x=10\ 100
5 0
4 years ago
Other questions:
  • Twelve of the students in a middle school Jazz Band like to preform solos. These 12 students make up 24% of the band. How many s
    6·1 answer
  • Really easy question pls healp emergency
    7·1 answer
  • Solve the linear expression 5(-3.4k-7)+(3k+21)
    7·1 answer
  • What is the equation in vertex form of the quadratic function that has a vertex at (6,-7)
    10·1 answer
  • What's the sum of the numbers as the product of their GCF and another sum.48+14
    5·1 answer
  • What is the sum of prime numbers between 110 and 125?​
    11·2 answers
  • Help please. Find the missing length indicated. Leave your answer in simplest radical form.
    10·1 answer
  • Someone help me with 5.84 divide 4
    12·2 answers
  • 6. A basketball team averaged 105 points per
    7·2 answers
  • PLEASE HELP ITS DUE RIGHT NOW
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!