+ 5

Write a program to calculate the amount that will result from the doubling to understand which choice results in a larger amount

please help me to finish this project 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).

26th Apr 2021, 6:12 AM
Mh. Taufiq Hidayattullah
Mh. Taufiq Hidayattullah - avatar
5 Respuestas
0
bantu saya bang saya tinggal projects nya saja
26th Apr 2021, 6:21 AM
Mh. Taufiq Hidayattullah
Mh. Taufiq Hidayattullah - avatar
+ 6
print(0.01 *(2**30)) And btw, do you from Indonesian? Because I'm from Indonesia 🤣
26th Apr 2021, 6:19 AM
NINJA PEACE
NINJA PEACE - avatar
+ 1
print(0.01*(2**30)) IT IS RIGT ANSWER.
17th Jan 2022, 7:41 AM
DEEPAK KUMAR SINGH
DEEPAK KUMAR SINGH - avatar
0
iya
26th Apr 2021, 6:20 AM
Mh. Taufiq Hidayattullah
Mh. Taufiq Hidayattullah - avatar
0
makasih banyak bang 🙏🙏
26th Apr 2021, 6:46 PM
Mh. Taufiq Hidayattullah
Mh. Taufiq Hidayattullah - avatar