Sammy has worked for a company with a retirement program, and today is retiring from her job
Fantastic news! We've Found the answer you've been seeking!
Question:
Sammy has worked for a company with a retirement program, and today is retiring from her job with the amount of $115 in her retirement account. She decides to withdrawal an equal amount from this account, once a year, beginning immediately, and ending 17 years from today (for a total of 18 payments). If the interest rate is 5.75%, solve for the annuity amount such that she uses up her full accumulation.
Transcribed Image Text:
Remember: You must write MATLAB code and then execute your code to produce output that solves this problem. You must show both your program and your program output in a screenshot(s) to receive full credit for this exercise. You must also include a handwritten MATLAB program! Exercise 8 (6 pts): INTRODUCTION: The Babylonian algorithm for computing the square root of a number is a simple iterative technique that can be surprisingly accurate:_(This algorithm is also known as a "Taylor Series' to compute the square root.) Xn+1 (Equation 8-1) where: S is the number you wish to find the square root of; Xn is the current guess for the square root of S; and Xa+1 is the updated (computed), next guess for the square root of S. n is the iteration step number If we let x; be our initial guess for the square root of S in Equation 8-1, and plug it in for x, on the right hand side of Equation 8-1 (i.e., let n = 1), then we can compute x2, the first, updated (computed) guess for the square root of S, on the left hand side of Equation &1 to become: (Equation 8-2) %3D And now, if we use x that we just computed on the right-hand side of equation 8-2 (i.e., now let n = 2), then we can compute x3, the second, updated guess for the square root of S: (Equation 8-3) %3D So x3 (Equation 8-3) will be the second, updated guess for the square root of S. In a similar way, we can keep using Equation 8-3, in an iterative fashion, to compute the third (x:), fourth (x3), fifth (x) updated guesses for the square root of S. Each updated guess gets closer and closer to the actual value of the square root of S. This is an example of an iterative process where a starting 'guess' is updated to a new guess, then another guess update and another and another until the answer is close to the correct answer. Many mathematical functions use iterations to calculate the needed values. Even with high powered modern computers, calculating nt to many-many decimal places is one such calculation. PROBLEM: Write a MATLAB program that uses Equation 8-1 inside a for loop to repeatedly calculate updated guesses for the square root of each number S given in the data table below. (Using the dot-operator method will NOT be accepted). Let the value computed in the fifth iteration (i.e., x6) be your final value for the square root S. For each number S in the table, use the given value of x, as your starting initial guess for the square root. Your program must print out ONLY the final value assigned to xg, and also the "true" value of the square root of S obtained by using MATLAB's sqrt function. Report your findings ONLY to the fourth decimal place in the data table below. DATA TABLE: Your computed x; MATLAB's sgrt (S) 12.34 4 3.5128 3.5128 1,234 40 35.1283 35.1283 155,765 200 394.6707 394.6707 155,765 -300 -394.6707 394.6707 NOTE: This data table will contain your answers for this MATLAB programming problem, must be accompanied by a single sereenshot showing your program and output for the first S and x, value pair (13 & 4.0). DO NOT show screenshots for every value pair of S and x. However, your program MUST show the values for x, that you provide as output in the above table. Remember: You must write MATLAB code and then execute your code to produce output that solves this problem. You must show both your program and your program output in a screenshot(s) to receive full credit for this exercise. You must also include a handwritten MATLAB program! Exercise 8 (6 pts): INTRODUCTION: The Babylonian algorithm for computing the square root of a number is a simple iterative technique that can be surprisingly accurate:_(This algorithm is also known as a "Taylor Series' to compute the square root.) Xn+1 (Equation 8-1) where: S is the number you wish to find the square root of; Xn is the current guess for the square root of S; and Xa+1 is the updated (computed), next guess for the square root of S. n is the iteration step number If we let x; be our initial guess for the square root of S in Equation 8-1, and plug it in for x, on the right hand side of Equation 8-1 (i.e., let n = 1), then we can compute x2, the first, updated (computed) guess for the square root of S, on the left hand side of Equation &1 to become: (Equation 8-2) %3D And now, if we use x that we just computed on the right-hand side of equation 8-2 (i.e., now let n = 2), then we can compute x3, the second, updated guess for the square root of S: (Equation 8-3) %3D So x3 (Equation 8-3) will be the second, updated guess for the square root of S. In a similar way, we can keep using Equation 8-3, in an iterative fashion, to compute the third (x:), fourth (x3), fifth (x) updated guesses for the square root of S. Each updated guess gets closer and closer to the actual value of the square root of S. This is an example of an iterative process where a starting 'guess' is updated to a new guess, then another guess update and another and another until the answer is close to the correct answer. Many mathematical functions use iterations to calculate the needed values. Even with high powered modern computers, calculating nt to many-many decimal places is one such calculation. PROBLEM: Write a MATLAB program that uses Equation 8-1 inside a for loop to repeatedly calculate updated guesses for the square root of each number S given in the data table below. (Using the dot-operator method will NOT be accepted). Let the value computed in the fifth iteration (i.e., x6) be your final value for the square root S. For each number S in the table, use the given value of x, as your starting initial guess for the square root. Your program must print out ONLY the final value assigned to xg, and also the "true" value of the square root of S obtained by using MATLAB's sqrt function. Report your findings ONLY to the fourth decimal place in the data table below. DATA TABLE: Your computed x; MATLAB's sgrt (S) 12.34 4 3.5128 3.5128 1,234 40 35.1283 35.1283 155,765 200 394.6707 394.6707 155,765 -300 -394.6707 394.6707 NOTE: This data table will contain your answers for this MATLAB programming problem, must be accompanied by a single sereenshot showing your program and output for the first S and x, value pair (13 & 4.0). DO NOT show screenshots for every value pair of S and x. However, your program MUST show the values for x, that you provide as output in the above table.
Expert Answer:
Answer rating: 100% (QA)
The short summary of given information in the question are ... View the full answer
Related Book For
Principles of Communications Systems, Modulation and Noise
ISBN: 978-8126556793
7th edition
Authors: Rodger E. Ziemer, William H. Tranter
Posted Date:
Students also viewed these accounting questions
-
If we let x = the number of spots facing up when a pair of dice is cast, then we can use the sample space S2 of Example 2.2 to describe the outcomes of the experiment. (a) Find the probability of...
-
4value 300 pointsRequired information You did not receive full credit for this question in a previous attempt Required Complete Iguanas budgeted income statement for quarter 2 Round cost per unit in...
-
Newton's method for computing the square root of a number consists of approximating the actual square root by means of a set of transformations. Each transformation starts with a guess at the square...
-
At the beginning of compression in a diesel cycle, T = 540 R, P = 30 lbf/in. 2 , and the state after combustion (heat addition) is 2600 R and 1000 lbf/in. 2 . Find the compression ratio, the thermal...
-
Denver-based Frontier Airlines provides service to 39 cities in the United States and Mexico. Frontier operates a fleet of 37 aircraft including sixteen 134-passenger Boeing 737-300 jets. The manager...
-
What idea, concept or issue stood out to you in foreign corrupt practice Act? If you are to be a health services manager, how might you use or apply the foreign corrupt practice Act in your work?
-
Consider a recent health-related situation you were involved in. Which life situation (Sect. 1.2) does it correspond to and what was your role in this life situation (Sect. 1.3)? List some of the...
-
Utease Corporation has many production plants across the midwestern United States. A newly opened plant, the Bellingham plant, produces and sells one product. The plant is treated, for responsibility...
-
a) Determine the domain of the function f(x)= b) Use the limit laws to evaluate. x-sin2x i) lim x0 x + sin 3x X-14 ii) lim X-144-x+2 1 x-2x-1 (5 Marks) (4 marks) (5 marks) x +1 c) If k and b are...
-
Recall the Martin-Beck Company supply chain design problem in Section 11.3. a. Modify the formulation shown in Section 11.3 to account for the policy restriction that a plant must be located either...
-
Give an example of a graph in which every node is pivotal for at least two dierent pairs of nodes. Explain your answer. Give an example of a graph having at least four nodes in which there is a...
-
Use an example to compare and contrast social marketing and cause-related marketing. Why is cause-related marketing often successful?
-
Locate an ad that seeks to influence the acquisition of a health care offering or service. Identify the specific consumer decision-making unit that might be affected by this ad. How do you think this...
-
What do you see for the future of health care reform as the law applies? Will health care reform spawn new laws, or will new laws be enacted to guide reform?
-
Define health care finance and provide several examples of how it affects managers at all levels within the organization.
-
What are some of the limitations of the term cultural competence? Which term do you prefer and why?
-
3. Find the complete state diagram of the following A Circuit. Show Work in detail clock AB D agree! FF AC 4. Implement the state diagram shown, using three FFS W, X, Y (W is MSB) Where Wis JKFF, x...
-
Use nodal analysis to determine voltages v1, v2, and v3 in the circuit Fig. 3.76. Figure 3.76 4 S 3i, 2 A 4A
-
The received signal in a digital base band system is either +A or -A, equally likely, for T-second contiguous intervals. However, the timing is off at the receiver so that the integration starts...
-
An FM system operates with the same parameters as given in the preceding drill problem except that the deviation ratio is 5. Determine the channel noise PSD that results in a post detection SNR of 30...
-
(a) Compare M-ary PSK and DPSK with regard to power and bandwidth efficiency. (b) Compare M-ary coherent FSK and non-coherent FSK with regard to power and bandwidth efficiency.
-
Using Rayeigh's method, determine the fundamental natural frequency of the system shown in Fig. 8.42. Disc, mass moment of inertia 5 kg-m Steel shaft, dia. 5 cm + O 0.8 m -0.2 m- FIGURE 8.42...
-
Solve Problem 8.73 using the Rayleigh-Ritz method with the mode shape \[U(x)=c_{1} \sin \frac{\pi x}{2 l}+c_{2} \sin \frac{3 \pi x}{2 l}\]
-
Find the first two natural frequencies of a fixed-fixed uniform string of mass density \(ho\) per unit length stretched between \(x=0\) and \(x=l\) with an initial tension \(P\). Assume the...
Study smarter with the SolutionInn App