0

Exponentiation is the raising of one number to the power of another. This operation is perform

How to solve

5th May 2021, 9:12 AM
Asher
Asher - avatar
4 odpowiedzi
+ 3
The question is incomplete.
5th May 2021, 9:13 AM
Soumik
Soumik - avatar
+ 1
You can use this to find the amount of money- print(0.01 * (2 ** 30))
5th May 2021, 9:19 AM
Soumik
Soumik - avatar
0
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). This one 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).
5th May 2021, 9:13 AM
Asher
Asher - avatar
0
Thanks ya
5th May 2021, 9:26 AM
Asher
Asher - avatar