Question: Need help on using MATLAB #1. Figure shows a cylindrical tank with a conical base. If the liquid level is quite low, in the conical
Need help on using MATLAB


#1. Figure shows a cylindrical tank with a conical base. If the liquid level is quite low, in the conical part, the volume is simply the conical volume of liquid. If the liquid level is midrange in the cylindrical part, the total volume of liquid includes the filled conical part and the partially filled cylindrical part. Use decisional structures to write an M-file to compute the tanks volume as a function of given values of R and d. Design the function so that it returns the volume for all cases 2R where the depth is less than 3R. Return an error message (Overtop) if you overtop the tank that is, d > 3R. Test it with the following data R 0.9 1.25 3.8 4.0 #2. Economic formulas are available to compute annual payments for loans. Suppose that you borrow an amount of money P and agree to repay it in n annual payments at an interest rate of i. The formula to compute the annual payment A is 0.033) Write an M-file to compute A. Test it with P = $100,000 and an interest rate of 3.3% ( Compute results forn 1, 2, 3, 4, and 5 and display the results as a table with headings and columns for n and A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
