View the step-by-step solution to:

Question

I want to create a table using For loop by python. the table at beginning should input the initial capital,

interest rate, year of investment. and compounding frequency. besides, the program also can calculate if investors withdraw their investment early. the procedure can display a 5% early withdrawal penalty and a final returns minus the penalty.

for loop only. the procedure should display a table as the example show. include the year, start balance, interest, and end balance, and calculate the new balance and interest rate in each year.

I had create a table, but it cannot display the change of start balance, interest, and end balance from second year.

thus, I want to know how to use for loop to create a table like this.


phpHZJp9w.png

phpHZJp9w.png

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes