0

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 double

Learning python

6th Nov 2020, 10:44 AM
Creepe r
Creepe r - avatar
8 odpowiedzi
0
okay, give me the doubling penny! Also show your attempt to solve
6th Nov 2020, 11:04 AM
Slick
Slick - avatar
+ 1
amount = 0.01 days = 30 print(0.01*(2**30)) #it's pretty simple, really
30th May 2022, 4:09 PM
Mohammed Shoaib Ahmed
0
{ print ( 1.000000*(1**30) ) print ( 0.01*(1**30) ) }
6th Nov 2020, 11:15 AM
Creepe r
Creepe r - avatar
0
it wants 1 penny (.01) doubled (* 2), 30 times (* 30).
6th Nov 2020, 11:20 AM
Slick
Slick - avatar
0
Please write it as a code
6th Nov 2020, 11:23 AM
Creepe r
Creepe r - avatar
0
lol nah, thats just doing it for you. hint: you can use parenthesis to have certain operations happen first. write it out on paper as a math problem, then turn it into code
6th Nov 2020, 11:26 AM
Slick
Slick - avatar
- 1
Use: 0.01 * pow(2, 30)
6th Nov 2020, 1:18 PM
UNKNOWN
UNKNOWN - avatar
- 1
Use print (0.01*(2**30)).
16th Oct 2021, 11:32 PM
Yashkumar Chauhan