Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You can download a hard copy of this assignment here. Homework Description You aspire to be a millionaire and believe that you may be able
You can download a hard copy of this assignment here. Homework Description You aspire to be a millionaire and believe that you may be able to do so by saving your pennies. You want to write a Python program that will calculate how many days it will take to reach a million dollars if you were to save a penny and then double the amount that you save each day. For example, you will 1 penny today, 2 tomorrow, 4 the next day and 8 the day after that, etc. You will write a program that will print out a table that contains three columns: the day number. pennies saved for that day and the total amount saved (amount from prior day plus the pennies for that day). For the table don't forget to use the escape characters and number formatting you learned in Chapter 2. After the table print a statement to let the user know how many days it will take to reach $1,000,000 and the total amount saved. There should be a blank line between the table and the statement. Don't forget to include comments at the top indicating the purpose of the program and your name as the programmer as well as throughout the program where appropriate
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started