b) Write a function volSAofSphere that will receive as input argument, the radius of the sphere,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
b) Write a function volSAofSphere that will receive as input argument, the radius of the sphere, and will return as output, the volume and surface area of the sphere for 1 <r < 2, in increments of 0.1 using a for loop. Display the radii, surface areas and volumes in a table and label each column and format the table to show the volumes and surface areas to 3 decimal places, and the radius to 1 decimal place. The two formulas for calculating volume and surface area respectively of a sphere are: volume = 47r/3 SA = 4rr? [Hint: use disp and fprintf to display the surface areas, volumes and radii in a table format as follows: disp ('radius surface area volume') fprintf(%0.1f %0.3f\n', radius, SA, volume) %0.3f The command disp ('radius volume') should come before the for loop whilst surface area fprintf(%0.1f volume) should be within the for loop]. %0.3f\n', radius, SA, %0.3f b) Write a function volSAofSphere that will receive as input argument, the radius of the sphere, and will return as output, the volume and surface area of the sphere for 1 <r < 2, in increments of 0.1 using a for loop. Display the radii, surface areas and volumes in a table and label each column and format the table to show the volumes and surface areas to 3 decimal places, and the radius to 1 decimal place. The two formulas for calculating volume and surface area respectively of a sphere are: volume = 47r/3 SA = 4rr? [Hint: use disp and fprintf to display the surface areas, volumes and radii in a table format as follows: disp ('radius surface area volume') fprintf(%0.1f %0.3f\n', radius, SA, volume) %0.3f The command disp ('radius volume') should come before the for loop whilst surface area fprintf(%0.1f volume) should be within the for loop]. %0.3f\n', radius, SA, %0.3f
Expert Answer:
Related Book For
Modeling the Dynamics of Life Calculus and Probability for Life Scientists
ISBN: 978-0840064189
3rd edition
Authors: Frederick R. Adler
Posted Date:
Students also viewed these computer engineering questions
-
The radius of a sphere is measured to be about 10 inches. Determine a tolerance S in this measurement that will ensure an error of less than 0.01 square inch in the calculated value of the surface...
-
If the radius of a sphere is doubled, how is the volume of the sphere affected?
-
The radius of a sphere is increasing at a rate of 4 mm/s. How fast is the volume increasing when the diameter is 80 mm?
-
Figure 11-31 shows a cooling curve for a Pb-Sn alloy. Determine (a) The pouring temperature; (b) The superheat; (c) The liquidus temperature; (d) The eutectic temperature; (e) The freezing range; (f)...
-
Differentiate between the dividend yield and the dividend payout ratio.
-
Harley-Davidson manufactures 30 custom-made, luxury-model motorcycles. Does it account for these motorcycles as 30 individual jobs or as a job lot? Explain.
-
If 1.0 -in. metal Pall rings are used instead of 2.0 -in. rings in Example \(16-2\) : a. Recalculate flooding velocity and required diameter. b. Recalculate \(\mathrm{H}_{\mathrm{G}}\) and...
-
According to a summary of the payroll of Brooks Industries Co., $1,100,000 was subject to the 6.0% social security tax and the 1.5% Medicare tax. Also, $50,000 was subject to state and federal...
-
The Krusty Krab is a fast - food restaurant. It is owned by Mr . Krab and has only two full - time employees: The fry cook, SpongeBob, and the cashier Squidward. This restaurant serves a popular...
-
Air containing 1.6 vol% sulfur dioxide is scrubbed with pure water in a packed column of 1.5-m2 cross-sectional area and 3.5-m height packed with no. 2 plastic Super Intalox saddles, at a pressure of...
-
As of the fiscal year ending December 31, 2014, Crystal Beach had $10,000,000 in 6 percent serial bonds outstanding. The serial bonds pay interest semiannually on April 1 and October 1, with $500,000...
-
Lumpkin Company sells lamps and other lighting fixtures. The purchasing department manager prepared the following inventory purchases budget. Lumpkin's policy is to maintain an ending inventory...
-
Cane Company manufactures two products called Alpha and Beta that sell for $185 and $120, respectively. Each product uses only one type of raw material that costs $5 per pound. The company has the...
-
Kirkland Company combines its operating expenses for budget purposes in a selling and administrative expense budget. For the first 6 months of 2020, the following data are available. 1. Sales: 20,300...
-
How do traditional functional organizational structures compare with more contemporary network-based structures in terms of scalability and the ability to leverage distributed talent and resources...
-
A thick-walled steel cylinder with length L = 500 mm, inner radius a = 25 mm and outer radius b = 250 mm is shrunk onto a steel shaft with radius a +6, where d is the interference fit (fig. 4). The...
-
what is the methods of variables: tools, surveys, or scales. Give detailed descriptions of reliability and validity of the study. Methods This study was a pragmatic randomised controlled trial (RCT)...
-
Government is advised to tax goods whose demand curves are inelastic if the goal is to raise tax revenues. If the goal is to discourage consumption, then it ought to tax goods whose demand curves are...
-
What is the per capita production of population 4 during these years? The following table describes populations that are growing through production. For each, sketch a graph, find the per capita...
-
Events occur at rate 0.2/s. Find the probability that the first event occurs before t = 1 or after t = 3. Compute the above probabilities. In each case, sketch the probability distribution function...
-
2 min. Starting with 50 molecules, each leaving with probability 0.2/min, find the normal probability distribution approximating the number remaining at the above time. Use it to estimate the...
-
Celestial Inc. is organized into 3 distinct divisions. The company is currently contemplating the elimination of either Division 1 or Division 2 because they are showing a pre-tax loss. An annual...
-
Wayflaire Inc. produces home products. The cost to manufacture a case ( 36 sets) of its most popular set of casual dinnerware is as follows: The average sales price for a case of dinnerware is \(\$...
-
Jill Catanac, purchased a new laptop computer just before this school term for \(\$ 300\). Shortly after the semester began, her new computer was damaged when it was accidentally dropped. Returning...
Study smarter with the SolutionInn App