Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ENGR 1202 Spring 2019 MATLAB Homework #4 Instructions: Solve the following problems in a MATLAB script. You will be allowed to submit only one script,

ENGR 1202 Spring 2019 MATLAB

Homework #4

Instructions:

  • Solve the following problems in a MATLAB script. You will be allowed to submit only one script, please work all the problems in the same script (Hint: careful with variables names)
  • Show your work and make comments in the same script (Use %). Please refer to formatting files previously announced/discussed.

Problem 1: Using loops, show the following calculation: 30=1 2

Problem 2: As you make decisions over your 401K, you find one investment opportunity that will draw 3.2% interest per year added to your account. The trick about this investment is that you will need to stop the investment as soon as you double the amount of your initial balance. You will receive statements of the balance for the total years you invested until the balance is doubled.

Expected from this program:

  • Initialize balance - Ask the user to enter an initial balance. Your first year is denominated at year 0.
  • You will need to display the balance with headings Year and Balance until the balance is twice the original.
  • Please display the numbers with bank format Example:

Initial Balance=4500.00

Year Balance

1.00

4905.00

2.00

5346.45

3.00

5827.63

4.00

6352.12

5.00

6923.81

6.00

7546.95

7.00

8226.18

8.00

8966.53

9.00

9773.52

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What can be done to get more people to value water more highly?

Answered: 1 week ago

Question

Make efficient use of your practice time?

Answered: 1 week ago