Question: use a while loop for this program and use python this problem should be fairly quick a certain part of my progam isnt working so

use a while loop for this program and use python this problem should be fairly quick a certain part of my progam isnt working so i want ot see how this can be done

Consider the following simple savings plan. On Day 1 you put aside one penny. On Day 2, you put aside two pennies. On Day 3 you put aside three pennies. You continue this simple savings plan for several years. So your daily balance for the first six days would look like this:

Balance = [1 1 + 2 = 3 3 + 3 = 6 6 + 4 = 10 10 + 5 = 15 15 + 6 = 21 ]

Write a Python program to do the following:

Prompt the user for how much he/she wishes to save (in dollars).

Convert the desired balance to pennies

Set the first entry in a balance List to 1 (1 penny on Day 1)

Add a while loop to compute the new balance at the end of each day using the simple saving plan described above. Save the new balance in the balance list. The while loop should continue as long as the most recent balance falls below the desired balance.

o Note: you must use a while loop for this problem to get complete credit.

Your program should output the final balance (in $), the contribution on the final day (in $), the number of days and the number of years required to reach the final balance

example:

Example of Test Case:

How much do you wish to save: $ 10000

The final balance is: $ 10004.05

Contribution on last day: $ 14.14

Number of days to save: 1414

Number of years to save: 3.87

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 Databases Questions!