3. (20 points) In class, we discussed an example of how to compute the growth of money over time, with regular annual co

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

3. (20 points) In class, we discussed an example of how to compute the growth of money over time, with regular annual co

Post by answerhappygod »

3 20 Points In Class We Discussed An Example Of How To Compute The Growth Of Money Over Time With Regular Annual Co 1
3 20 Points In Class We Discussed An Example Of How To Compute The Growth Of Money Over Time With Regular Annual Co 1 (58.87 KiB) Viewed 61 times
3. (20 points) In class, we discussed an example of how to compute the growth of money over time, with regular annual contributions. Let's approach this problem from another angle: given your current financial situation and a retirement goal you have in mind, how much should you contribute each year to achieve that goal? To make this more realistic than our in-class example, we'll also allow the contribution each year to grow over time. People can often contribute more as they advance in their career and their earnings increase. Write a program named retirement_calculator.py that starts by getting the following user inputs: Current age . Target retirement age . Current retirement savings, in USD Target savings at retirement, in USD • Annual growth rate, as a percentage ("growth" is just a more general term for the "interest" idea that we covered in class) • Amount to increase the annual contribution by each year, as a percentage. We'll assume that this percentage is consistent throughout the person's entire career. For example, a figure of 2% might mean that the person contributes $1000 the first year, $1020 (2% more than $1000) the second year, $1040.40 (2% more than $1020) the third year, and so on. Include input validation (using a loop) on all of these to ensure that the values must be non- negative (i.e., 0 or greater). Furthermore, include input validation on the target retirement age to ensure that it cannot be less than the user's current age, and the target retirement savings to ensure that it cannot be less than the user's current savings. Based on those inputs, the program should compute the minimum possible contribution the user can make their first year to meet their goals. Also show a table with the projected growth
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply