Question

You begin on 1 January 2015 by making an initial deposit of $5,000 to open a savings account at Bank of Mason. This account p
0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB CODE:

INTEREST_PER_MONTH = 0.135;
% Deposit initial amount to the account
balance = 5000;
account = [balance];
% Start simulation
m = 1;
while balance >= 0
    % Credit interest to the account balance
    interest = balance*INTEREST_PER_MONTH/100;
    balance = balance + interest;
    account = [account balance];
    m = m + 1;
    % If its an even month, withdraw $500
    if mod(m, 2) == 0
        balance = balance - 500;
    end
    % It its December, credit $2000
    if m == 12
        balance = balance + 2000;
    end
end
account = [account balance];
fprintf('The account balance goes negative in %d months\n', m);
% Plot account of all months
x = 0:m;
y = account;
plot(x, y);
grid on;
xlabel('Months');
ylabel('Account balance (in USD)');

OUTPUT:

Command Window >> main The account balance goes negative in 30 months fx >>

Figure 1 - O X File Edit View & Insert Tools Desktop Window A 2. Help 0 E O 6000 5000 Account balance in USD) - 1000 o 5 10 1

FOR ANY HELP JUST DROP A COMMENT

Add a comment
Know the answer?
Add Answer to:
You begin on 1 January 2015 by making an initial deposit of $5,000 to open a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • This is part 1 of a 4 part MATLAB question. In this part, you are to...

    This is part 1 of a 4 part MATLAB question. In this part, you are to upload a scan of your handwritten notes. Start with EITHER your WA09A working code and your WA09B code. Modify the code so that you build an array that is plotted for f(x) and g(x). Use the following: x = 3.2 : 0.01 : 3.7 To plot the following two equations: f(x) = 3x3 - 4x2 + 1 and g(x) = 6x2 + 2x -...

  • You deposit $5,000 per year at the end of each of the next 25 years into...

    You deposit $5,000 per year at the end of each of the next 25 years into an account that pays 8% compounded annually. How much could you withdraw at the end of each of the 20 years following your last deposit if all withdrawals are the same dollar amount? (The twenty-fifth and last deposit is made at the beginning of the 20-year period. the first withdrawal is made at the end of the first year in the 20-year period. A....

  • 8-One year from now, you deposit $300 in a savings account. You deposit $1,800 the next...

    8-One year from now, you deposit $300 in a savings account. You deposit $1,800 the next year. Then you wait two more years (until 4 years from now) and deposit $1,000. If your account always earns 6% annual interest and you make no withdrawals, how much will be in the account 11 years from now? 9-You deposit $5000 for 5 years at 4% annual interest. In 5 years, you add $15,000 to your account, but the rate on your account...

  • (1 point) Suppose that you open a mutual fund account with a deposit of 520 dollars....

    (1 point) Suppose that you open a mutual fund account with a deposit of 520 dollars. 3 months later, the fund balance is 620 dollars, and you withdraw 216 dollars. A year after the account was opened, your balance is X dollars. If the dollar weighted and time weighted rates of return were the same, what is the rate of return? (Assume simple interest for the dollar weighted calculation.) Answer = percent

  • 1. You have $49,061.69 in a brokerage account, and you plan to deposit an additional $5,000...

    1. You have $49,061.69 in a brokerage account, and you plan to deposit an additional $5,000 at the end of every future year until your account totals $200,000. You expect to earn 9.1% annually on the account. How many years will it take to reach your goal? Round your answer to the nearest whole number. 2. Present and Future Value of an Uneven Cash Flow Stream An investment will pay $100 at the end of each of the next 3...

  • (1 pt) Suppose that you open a mutual fund account with a deposit of 505 dollars....

    (1 pt) Suppose that you open a mutual fund account with a deposit of 505 dollars. 5 months later, the fund balance is 595 dollars, and you withdraw 192 dollars. A year after the account was opened, your balance is X dollars. If the dollar weighted and time weighted rates of return were the same, what is the rate of return? (Assume simple interest for the dollar weighted calculation.) Answer = percent. Can use excel as long as answer is...

  • I'm getting this error message, and trying to figure out why. Check 1 failed Output: What...

    I'm getting this error message, and trying to figure out why. Check 1 failed Output: What would you like to do? Expected: What would you like to do? Thank you for banking with us. ATM Summary Your final function in the ATM Script is the Print the Customer summary as follows: Final Input userchoice = input ("What would you like to do?\n") userchoice = 'Q' Final Output What would you like to do? Thank you for banking with us. ATM...

  • [JAVA] < Instruction> You are given two classes, BankAccount and ManageAccounts ManageAccounts is called a Driver...

    [JAVA] < Instruction> You are given two classes, BankAccount and ManageAccounts ManageAccounts is called a Driver class that uses BankAccount. associate a member to BankAcount that shows the Date and Time that Accounts is created. You may use a class Date. To find API on class Date, search for Date.java. Make sure to include date information to the method toString(). you must follow the instruction and Upload two java files. BankAccount.java and ManageAccounts.java. -------------------------------------------------------------------------- A Bank Account Class File Account.java...

  • LAB1 PART 1 FOR THE DATA TYPE CLASS: If you do not have UML of class...

    LAB1 PART 1 FOR THE DATA TYPE CLASS: If you do not have UML of class Account_yourLastName, you should do that first Basesd on the UML, provide the code of data type class Account_yourLastName to hold the information of an account with account number (String), name (String), balance (double), with no-argument constructor, parameter constructor Also, define some methods to handle the tasks: open account, check current balance, deposit, withdraw, and print monthly statement. At the end of each task we...

  • can you please use TI calculator and provide steps. Question 4 1/1 point I make an initial deposit of $4,000 followed by withdrawals of $25.00 per month. The nominal APR is 800% compounded semian...

    can you please use TI calculator and provide steps. Question 4 1/1 point I make an initial deposit of $4,000 followed by withdrawals of $25.00 per month. The nominal APR is 800% compounded semian balance in 40 years? ally what is my $9,818 $78,418 $8,145 $176,254 Question 5 1/1 point Same as Problem 4 except different withdrawal. I make an initial deposit of $4,000 followed by withdrawals of $300 per month. The nominal APR is 800% compounded semi-annually. balance in...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT