4) (5 pts) After an unfortunate series of events, you find yourself in possession of a new car – and the associated loan. Due to the particular nature of your poor decisions, you are unable to recall the interest rate. When explaining to your parents/spouse/SO/reflection, you feel that knowing the interest rate would be helpful. You know the payments are $600/month for five years, and the sticker price was $25,000. You know the formula for annual payment A is:
A=P∗ i(i+1)^n / (1+i)^(n) −1
where P is the principal, i is the interest rate (in decimal, not percentage, so 10% is entered as 0.1), and n is the number of years.
You decide, being an engineer, that you can figure this out, but algebra is letting you down. This problem will ask you to find the interest rate at various resolutions using incremental search (a terrible plan, but very easy to program).
a) Write a general-purpose incremental search function. This function should calculate the “x” (in this case, “i”) values of interest using equal spacing (the bounds, and the number of points, should be inputs to the function). Your search function should also take a function handle as an input. This function handle should be used to calculate the function value (A) at each point in the incremental search (do not merely pass in a series of i and A values, for example).
An acceptable prototype would be: function [rootLocations, numRoots] = IncSearch(func, lowerBound, upperBound, numPoints)
Decide for yourself how you wish to define numPoints (points between the boundaries or total points), but make sure you comment it appropriately.
b) Using your new function from part a, search for the interest rate using a starting bracket of 1% to 30%. Report the answer using resolution (inner interval length) of 1, 0.1, and 0.01 percentage points (you'll have to calculate the number of points required, and then call your function). Note I said resolution not e.g. ARE – I'm referring here to the distance between adjacent evaluation points on the “interest rate” axis. You'll also need to create an anonymous function using the above equation.
c) Using MATLAB's tic and toc commands (in a script file, not the command window), compare the computational complexity (time to complete) of solving this problem with each of the resolutions in part b.
4) (5 pts) After an unfortunate series of events, you find yourself in possession of a...
4) [15 points total (5 points each)] Assume you are given a sorted array A of n numbers, where A is indexed from 1 up to n, anda number num which we wish to insert into A, in the proper sorted position. The function Search finds the minimum index i such that num should be inserted into Ali]. It searches the array sequentially until it finds the location i. Another function MakeRoom moves A[i], .., AIn] to Ali+1]...AIn+1] same sort...
Question 10 5 pts You will receive a series of $1,216 payments, annually, beginning exactly 6 years from today, for a total of 10 payments. The relevant interest rate (your opportunity cost) is 8% (as an EAR). What is the present value today. (year O) of this series of payments? Do not round any intermediate work. Round your final answer to 2 decimal places (ex: if your answer is 12.345678 then you should enter 12.35). Margin of error for correct...
Question Help You are given the following series of one-year interest rates 5% , 4% ,5°1.1% Assuming that the expectations theory is the correct theory of the term structure, calculate the interest rates in the term structure for maturities of one to four years, and plot the resulting yield curve 7 1. Using the point drawing tool, plot the interest rate (calculated. using the data above) for each of the four terms to maturity Properly label each point according to...
pls!!!:(
4. [0/10 Points] DETAILS LARCALC11 9.9.501.XP. 1/2 Submissions Used Find a power series for the function, centered at c. Rx) = 5 * C = -2 00 f(x) = n=0 Determine the interval of convergence. (Enter your answer using interval notation.) I Submit Answer Viewing Saved Work Revert to Last Response [10/10 Points] DETAILS LARCALC11 9.R.060. 2/2 Submissions Used Use the Alternating Series Test, if applicable to determine the convergence or divergence of
You find yourself setting up another Western blot, however. today you are preparing the samples to load onto the SDS-PAGE gel. You are using a 4-20%SDS-PAGE gel that can hold a maximum of 30 μしper 1 You remember from you so decided to prepare each sample with a final volume of 25 uL. However, no one is perfect at pipetting, so make sure each sample is made at 1.5X the total volume needed per well. The protein you are interested...
Question 4 (a) Find the DFT of the series x[n)-(0.2,1,1,0.2), and sketch the magnitude of the resulting spectral components [10 marks] (b) For a discrete impulse response, h[n], that is symmetric about the origin, the spectral coefficients of the signal, H(k), can be obtained by use of the DFT He- H(k)- H-(N-1)/2 Conversely, if the spectral coefficients, H(k), are known (and are even and symmetrical about k-0), the original signal, h[n], can be reconstituted using the inverse DFT 1 (N-D/2...
LINUX C programming Please make sure the output is correct Please do read data from file, the example below is just a example Third: Hash table (20 points) In this part, you will implement a hash table containing integers. The hash table has 10,000 buckets. An important part of a hash table is collision resolution. In this assignment, we want you to use chaining with a linked list to handle a collision. This means that if there is a collision...
I need the answers for 6 and 7. Attached below is my work for
1-5. Thank you.
My work:
PART III Average rate of change of exponential functions near zero. (5) 1. Given f(x)- 2", find the average rate of change of f(x) fromx - 0 tox -0.1, so that Ax -0.1. Recall that the average rate of change is Show your steps and write your Δι answer on the first line of the table below. (5) 2. Continue finding...
Consider the following scenario. Suppose that you are in the market to buy a new $20,000 car. You intend to take out a loan to pay for the car. The market interest rate is at 6% annually, i.e. this is the interest rate you would get from the bank. a. [3 pts] Consider the simple loan case. Suppose that the dealership allows you to pay the car off in four installments of $5,000, with each installment due once a year....
When you borrow money to buy a house or a car, you pay off the loan in monthly payments, but the interest is always accruing on the outstanding balance. This makes the determination of your monthly payme on a loan more complicated than you might expect. If you borrow P dollars at a monthly interest rate ofras decimal) and wish to pay off the note in months, then your monthly payment M = M(Prt) in dollars can be calculated using...