0

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

Use the print() statement for the output. It's my code project. Pls suggest me anyone

23rd May 2021, 6:14 PM
Sachin Pradhan
Sachin Pradhan - avatar
7 Réponses
+ 3
You need to perform Maths operation. Please play with these examples a bit. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2271/ There is a Hint explaining how to get value using exponential. If you don't use ** operator, manually multiplying the numbers by 30 times is ok too.
23rd May 2021, 6:24 PM
Gordon
Gordon - avatar
+ 2
This is question body, which sentence do you not understand? 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.
23rd May 2021, 6:29 PM
Gordon
Gordon - avatar
+ 1
On day 1 you have 2**1 = 2 cents On day 2 you have 2**2 = 4 cents On day 3 you have 2**3 = 8 cents How many do you have on day 30? Is that more than $1,000,000.00?
23rd May 2021, 7:30 PM
David Ashton
David Ashton - avatar
0
Soumik I can't understand that question so i can't do it
23rd May 2021, 6:27 PM
Sachin Pradhan
Sachin Pradhan - avatar
0
Yes yes this task
23rd May 2021, 6:38 PM
Sachin Pradhan
Sachin Pradhan - avatar
0
This question i can't understand, pls tell me how to perform this question
23rd May 2021, 6:40 PM
Sachin Pradhan
Sachin Pradhan - avatar
0
Yaah now i understood. It will come 2**30 =1073741824 But i performed this in code project,there showing No input. What input i will put there
24th May 2021, 3:39 PM
Sachin Pradhan
Sachin Pradhan - avatar