0

Need help with one of the quizzes please help v

Exponentiation is the raising of one number to the power of another. This operation is performed using two asterisks **. Let's use exponentiation to solve a known problem. You are offered a choice of either $1.000.000 or $0.01 (one penny) doubled every day for 30 days (the resulting amount is doubled every day). Task: Write a program to calculate the amount that will result from the doubling to understand which choice results in a larger amount. Hint: Let's see how exponentiation can be useful to perform the calculation. For example, if we want to calculate how much money we will have on the 5th day, we can use this expression: 0.01*(2**5) = 0.32 dollars (multiply the penny by 2 raised to the power of 5).

4th Jan 2021, 6:27 PM
iZoas
iZoas - avatar
5 Respuestas
+ 1
Which programming language? Please link your attempt.
4th Jan 2021, 6:41 PM
Lisa
Lisa - avatar
+ 1
The question is, how many pennies will we have after 30 days, if we start with money = 0.01 We want to double our total amount of money on each of the 30 days. Carefully look at the hint: it already contains the formula (in the example it is 5 days)
4th Jan 2021, 7:07 PM
Lisa
Lisa - avatar
4th Jan 2021, 6:58 PM
iZoas
iZoas - avatar
0
i havnt tryed anything and i dont onoe ehere to start and i dont really like the math
4th Jan 2021, 6:58 PM
iZoas
iZoas - avatar
0
i dont undest it ay all
4th Jan 2021, 7:50 PM
iZoas
iZoas - avatar