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)...
-
Hardware stores charge higher prices for snow shovels after a big snowstorm. What role do prices play in the snow shovel market?
-
Given: E(R1) = 0:12 E(R2) = 0:16 E(1) = 0:04 E(2) = 0:06 Calculate the expected returns and expected standard deviations of a two-stock portfolio having a correlation coefficient of 0.70 under the...
-
Repeat Example 7.3 using \(10 \mathrm{~kg} / \mathrm{h}\) of solvent in each stage. Data From Example 7.3:- The feed of Example 7.2 is extracted three times with pure chloroform at 298 K, using 8...
-
The East Eanes School District engaged in or was affected by the following events and transactions during its scal year ending June 30, 2015. 1. Teachers and other personnel earned $350,000 in...
-
Consider the closed system with mass-action rate constants as shown. Suppose the rate constants are (in min-1) k = 0.05, kg = 0.7, k2= 0.005, and k4 = 0.4. ki k3 A B C k2 ka (a) Construct a...
-
The trial balance of Pacilio Security Services Inc. as of January 1, 2013 had the following normal balances: Cash ..............$8,900 Accounts Receivable ......... 1,500 Supplies .............. 65...
-
A firm initiates a social media campaign on facebook, choosing their target market to focus on men. After a month of running the campaign, the marketing manager analyzes the data and finds that the...
-
According to Lencioni, "When it comes to teamwork, accountability means the willingness of members to remind one another when they're not living up to performance standards and results." How would...
-
QUESTION 3 If the Total Cost (TC) curve is an upward sloped concave curve (that is, a flatter and flatter curve as Q rises), then the marginal cost (MC) as Q rises. is constant O increasing O...
-
Though it did not become policy, then-President Obama suggested that federal aid appropriations be tied to a rating system for higher education institutions that would be used to determine the value...
-
Ted Talks have always been my favorite way to hear other's perspectives on subjects as the speaker always finds a way to make you think. The Ted Talk I have chosen is titled "Great Leadership is a...
-
A firm has strictly concave and increasing production function. The output q=f(z1,z2) is sold at price p>0 while w1 and w2 are the costs of the inputs. Production activity generates also an...
-
Audit documentation satisfies the auditor's responsibilities concerning the Code of Professional Conduct. documents the level of independence maintained by the auditor. O provides the principal...
-
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...
-
Describe the issues that you considered in each of these facets when you made a recent important purchase.
-
The area of a rectangle is calculated according to the following formula: Design a function that accepts a rectangles width and length as arguments and returns the rectangles area. Use the function...
-
Design a program that gives simple math quizzes. The program should display two random numbers that are to be added, such as: The program should allow the student to enter the answer. If the answer...
Study smarter with the SolutionInn App