Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6794735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:15:29+00:00 2026-05-26T18:15:29+00:00

Well I have been trying this problem for over 10 hours and have no

  • 0

Well I have been trying this problem for over 10 hours and have no idea how to do this problem, here it is:

Imagine that you are a proud new parent. You decide to start a college
savings plan for your child, hoping to have enough in 18 years.
Suppose that your folks give you $1000 to get started and that each
month you can contribute $100. Suppose also that the interest rate is
6% per year compounded monthly, which is equivalent to 0.5% each
month. Because of interest payments and your contribution, each month
your balance will increase in accordance with the formula:

New Balance = Old Balance + interest + your contribution

Use a for loop to find the amount in the savings account each month
for the next 18 years. (Create a vector of values.) Plot the amount in
the account as a function of time.

The part that I am stuck on is how to make the new balance get plugged back into the equation 216 times (for 18 years). I am able to get the first monthly balance but don’t know how to make the loop continue for the remaining 215 months.
Any tips? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:15:30+00:00Added an answer on May 26, 2026 at 6:15 pm

    Did you mean something like this:

    iterations = 12*18;
    old_bal = 1000;
    monthly = 100;
    balance = zeros(iterations,1);
    for i=1:iterations
        balance(i) = old_bal;
        interest = old_bal*0.5/100;
        new_bal = old_bal + interest + monthly;
        old_bal = new_bal;
    end
    
    plot(1:iterations,balance)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to solve this problem for hours (searched here as well
This is a problem I have been trying to track down for a couple
I have been trying to make my website performs well. One way that may
I have been trying to solve this problem for three days now, it's really
I'm very much new to programming and have been doing fairly well so far.
Object-relational mapping has been well discussed, including on here. I have experience with a
Well I have this MySQL stored procedure that I wrote and if I run
I have tried contacting tech support with this question, but it has been over
I'm new to MVC, but I've been all over this, read all the documentation
Over the past few days, I have been trying to find an answer to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.