Q7. Write a MATLAB function to calculate the volume of a Cone. Use the following equation:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q7. Write a MATLAB function to calculate the volume of a Cone. Use the following equation: V= (1/3) Thr^2 Then call this function in a for loop that calculates the volume of five Cones. Where the Cone Heights are h= {5, 8, 7, 11,9} cm, and its radius r= {6, 10, 9, 8, 4} cm respectively, then display the results. (5 Marks) Q7. Write a MATLAB function to calculate the volume of a Cone. Use the following equation: V= (1/3) Thr^2 Then call this function in a for loop that calculates the volume of five Cones. Where the Cone Heights are h= {5, 8, 7, 11,9} cm, and its radius r= {6, 10, 9, 8, 4} cm respectively, then display the results. (5 Marks)
Expert Answer:
Answer rating: 100% (QA)
function volume Vconehr volume 13hr2 end h 15 8 7 11 9 r 6 10 9 8 4 for i 15 volume Vconehiri fp... View the full answer
Related Book For
An Introduction to the Mathematics of Financial Derivatives
ISBN: 978-0123846822
3rd edition
Authors: Ali Hirsa, Salih N. Neftci
Posted Date:
Students also viewed these accounting questions
-
Write a Matlab function to price an European call.
-
Use Eq. (10) to calculate the volume of the unit ball as a surface integral over the unit sphere?
-
For the data tabulated, calculate the volume of excavation in cubic yards between stations 10 + 00 and 15 + 00. Cut End StationArea (ft2) 10 + 00..............................263 11 +...
-
When researchers find a reasonably complete fossil of a dinosaur, they can determine the mass and weight of the living dinosaur with a scale model sculpted from plastic and based on the dimensions of...
-
Why is the equality of marginal revenue and marginal cost essential for profit maximization in all market structures? Explain why price can be substituted for marginal revenue in the MR = MC rule...
-
Kleymenova Consulting, Inc., enters into a contract to provide consulting services. Required: In each of the following independent scenarios, determine whether revenue should be recognized at a point...
-
Journalize the following transactions for Amazing Audio, Inc., that occurred during the month of March. Mar 3 Purchased $4,600 of merchandise on account, terms 2/10, n/30, FOB shipping point. The...
-
One year ago, your company purchased a machine used in manufacturing for $110,000. You have learned that a new machine is available that offers many advantages; you can purchase it for $150,000...
-
22. Indicate whether the following actions would (+) increase, (-) decrease, or (0) not affect a company's total assets, liabilities, and stockholders' equity. (12 points) Stockholders' Assets...
-
Baer Belly Bikinis, Inc. (BBB) is a small business located in Santa Monica, California. It sells swimwear and related products to specialty stores throughout the United States. It also sells its...
-
1. Which of the following shows thecorrect order of events? Unadjusted trial balance, adjusting entries, financialstatements, adjusted trial balance Unadjusted trial balance, adjusting entries,...
-
3. John walks 50 meters north, then realizes he walked too far. He turns around and walks 25 meters south. The entire walk takes him 13 seconds. What is his speed and what was John's velocity in...
-
Presented below are the components in determining cost of goods sold. Determine the missing amounts. Beginning Inventory $75,000 Purchases $95,000 Cost of Goods Available for Sale $ $45,000 (e) +A...
-
Identify whether the argument is inductive or deductive and briefly explain your reasoning Identify unstated premises (warrants) that connect premises to conclusions and critically assess whether...
-
A each runner1 0 0 - m race, the winner is timed at 1 1 . 2 s . The second - place finishers time is 1 1 . 6 s . How far is the second - place finisher behind the winner when she crosses the finish...
-
3. Two point charges of magnitude +50 C are placed at corners A and B (separated by a distance of 2 m) of an isosceles triangle, as shown below. Calculate the work done by the electric field in...
-
Peter and Paul are good friends, who started a business by incorporating PP Limited (PP), a private limited company in Hong Kong on 1 April 2019. Peter and Paul hold 7,000 shares and 3,000 shares of...
-
Distinguish among total-moisture content, free-moisture content, equilibrium-moisture content, unbound moisture, and bound moisture.
-
In Example 7 find the breakeven spread that is the spread that makes present value of the fixed leg the same of present value of the contingent leg.
-
Consider a first-to-default basket (FTD) that pays (1 R) upon the default of the first credit in a basket of 3 credits. Protection on the FTD lasts 5 years and payments are made quarterly. The...
-
Consider the equation below that gives interest rate dynamics in a setting where the time axis [0, T] is subdivided into n equal intervals, each of length : where the random error terms Wt = (Wt+ Wt)...
-
Eastern Bank serves both university students and regular customers. For university students, the bank charges \($0.10\) per withdrawal. Regular customers get free withdrawal services. The bank earns...
-
After an extensive cost-benefit analysis, Mercy General Hospital has made a decision to outsource its ambulance operations to a private company. The administration has narrowed down its decision to...
-
The Peter Paint Company makes water- and oil-based paints for houses. Recently, the firm has been investigating other opportunities. One possibility is producing finger paints for children. Finger...
Study smarter with the SolutionInn App