0

Help in solving this problem

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

11th Jun 2021, 7:27 AM
Adebisi Olawale
Adebisi Olawale - avatar
6 Respuestas
+ 2
Hi! Please, show us your code attempt! Thx!
11th Jun 2021, 7:35 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
guys, stop giving answers without the questioner trying. are we competing in the exam to find out who will give the correct answer faster?
11th Jun 2021, 7:52 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
here, in this problem, you have no input data, you just need to calculate how much it will be if you double one cent every day for 30 days. you don't have to count a million
11th Jun 2021, 8:01 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
Adebisi Olawale It's simple if you read explanation you will understand easy to solve
11th Jun 2021, 11:28 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
0
Adebisi Olawale Explanation is already given with problem. Just look that and solve it. No need of explanation again.
11th Jun 2021, 7:48 AM
A͢J
A͢J - avatar
0
# your code goes here days = int(input()) first = 0.01* (2** days) second= 1.000 * (2** days) print (first )
11th Jun 2021, 7:50 AM
Adebisi Olawale
Adebisi Olawale - avatar