Question: SOL SOLVE WITH ,MATLAB Exercise 3: Imagine that you have a crystal ball and can predict the percentage increases in tuition for the next 22

SOLSOLSOLVE WITH ,MATLAB Exercise 3: Imagine that you have a crystal ballSOLVE WITH ,MATLAB

Exercise 3: Imagine that you have a crystal ball and can predict the percentage increases in tuition for the next 22 years. The following vector increase shows your predictions, in percent, for each year: increase = [10, 8, 10, 16, 15, 4, 6, 7, 8, 10, 8, 12,14, 15, 8, 7, 6, 5, 7, 8, 9, 8] Use a for loop to determine the cost of education after 22 years, assuming that the current cost for 1 year at a state school is $5000. What would be the cost of the 4-year tuition if one was to start their education 10 years from now? Exercise 4: The inverse of the mathematical constant e can be approximated as follows: 1 2=(1-1) 1 e Write a script that will loop through values of n (starting with n= 1) until the difference between the approximation and the actual value is less than 0.0001. The script should then print out the built-in value of e-1 and the approximation to four decimal places, and also print the value of n required for such accuracy. You can use the following template for writing the script. while abs( newApproximate exp(-1)) > 0.0001 % compute the new approximate value end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Chemical Engineering Questions!