Question: write in python: Charles is giving Jack $ 1 million dollars today. Today, Charles is also giving Jill 1 dollar. Tomorrow, he will give her

write in python: Charles is giving Jack $1 million dollars today. Today, Charles is also giving Jill 1 dollar. Tomorrow, he will give her 2 dollars and the day after he will give her 4 dollars. He will double what he gives her each day for the next 20 days. Based on what is given to us, who has more money after 20 days? Your program must be written with custom functions. I would like to see all pertinent information as you solve this problem. For instance, here is a portion of sample output:
Day 1 Amount Jill is given 1.00 Total Jill has is 1.00
Day 2 Amount Jill is given 2.00 Total Jill has is 3.00
Day 3 Amount Jill is given 4.00 Total Jill has is 7.00
Day 4 Amount Jill is given 8.00 Total Jill has is 15.00
Day 5 Amount Jill is given 16.00 Total Jill has is 31.00
Day 6 Amount Jill is given 32.00 Total Jill has is 63.00
Etc...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!