Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

If a certain amount of money (called the principal P) is invested in a bank acco

ID: 3119481 • Letter: I

Question

If a certain amount of money (called the principal P) is invested in a bank account, earning an interest rate percentage i compounded annually, the total amount of money T_n that will be in the account after n years is given by: T_n = P (1 + i)^n Write an m-file script that prompts the user for the principal amount P and the annual interest rate percentage i (between 0 and 100), and outputs the total amount of money T_n for years n = 1, 5, 10. Create a test table and write an m-file script solve the problem. Use your test table to test your script. Make sure to format the output if necessary. Design will be done in lecture or lab. You are constructing a hemispherical dome with an outer radius of "x" feet. The walls will be solid concrete "y" inches thick. Calculate the number of cubic yards of concrete that will be needed. Create a test table and write an m-file script solve the problem. Use your test table to test your script. Make sure to format the output if necessary. Design will be done in lecture or lab. A substance is said to be subject to exponential decay if it decreases at a rate proportional to its value. Symbolically, this can be expressed as the following differential equation, where N is the quantity and L (lambda) is a positive number called the decay constant: dN/dt = -LN The solution to this equation is: N(t) = N(0)e^-Lt Here N(t) is the quantity at integer time t, and N(0) is the (initial) quantity (at time t=0) and L is the decay constant. Larger decay constants make the quantity vanish much more rapidly. Use this fact to create a test table and then write the function called expDecay (with three arguments N(0), L, t and one return value N(t)) to solve the problem. Use your test table to test your function. Show how to call your function and save the returned value in a variable named futureQuantity. Design will be done in lecture or lab.

Explanation / Answer

find the matlab function below (compound total is the function)

function [T1,T5,T10] = compoundtotal(P,i)

if or(i>100, i <0)

error("Not Valid interest rate")

end

T1 = P(1+i/100)

T5 = P(1+i/100)^5

T10 = P(1+i/100)^10

end

PART B) function volume = VolumeHemisphere(x,y)

volume = 2/3 * pi * (x^3 - (x - y/12)^3)

end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote