Question

uys the (d) What is the total sale of each product for the 3 months period → $6,900 A Saleum B Sale C sale (e) Add Product D details to the array in part (a) Product D 60 85 92 87 04. Function File (30 points) A) Create a function file that determines the surface area and the volume of a truncated cone. Name the function file YourInitials Truncone. The function takes the radius of the big base, R, the radius of the small base, r, and the height, h, of the truncated cone and outputs the Surface Area, SA, and the Volume, V, of the truncated cone. The Surface Area is the summation of the Lateral Area, LA, the Big Base Area, BBA, and the Small Base Area, SBA. The volume and srface area formulas are given below Truncated Cone 3 SA = LA + BBA + SBA Where: OPCORN POP CORN
media%2Fb26%2Fb26a7808-b015-45fb-82a5-da
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hey,

Below is the code to your question

============================

Save file as YourInitials_TrunCone.m

=============================

function [V,SA]=YourInitials_TrunCone(r,R,h)
    SA=pi*(R+r)*sqrt((R-r)^2+h^2)+pi*(R^2)+pi*(r^2);
    V=(1/3)*pi*h*(R^2+R*r+r^2);
end

=================================

Executable file

=================================

clear all
clc
r=input('Enter radius of small base: ');
R=input('Enter radius of big base: ');
h=input('Enter height: ');
[V,SA]=YourInitials_TrunCone(r,R,h);
fprintf('For R=%.2f mm, r=%.2f mm, h= %.2f mm, SA=%.2f mm^2 & V=%.2f mm^3.\n',R,r,h,SA,V);

1clear all 3-r-input (Enter radius of small base: 5 -h-input (Enter height:: clc R-input (Enter radius of big base: 6- IV, SA]-YourInitials_TrunCone (x, R, h) ommand Window New to MATLAB? Watch this Video, see Examples, or read Getting Started Enter radius of small base: 6 Enter radius of big base:10 Enter height: 4 For R=10.00 mm, r=6.00 mm, h= 4.00 mm, SA=711.60 mm^2 & v=821.00 mm^3.

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
uys the (d) What is the total sale of each product for the 3 months period...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Using Python 3+ for Question P5.9 Instructions: Use one main() to call each of the functions...

    Using Python 3+ for Question P5.9 Instructions: Use one main() to call each of the functions you created. Only use one value of r and h for all the function. Ask the user for the r and h in the main() as an input, and h for all the functions. You should put the functions for areas in a separate file. ​ For example, firstDigtec7ze Write a function e digits n) (returning the number of digits in the argument returning...

  • Consider a cylindrical capacitor like that shown in Fig. 24.6. Let d = rb − ra...

    Consider a cylindrical capacitor like that shown in Fig. 24.6. Let d = rb − ra be the spacing between the inner and outer conductors. (a) Let the radii of the two conductors be only slightly different, so that d << ra. Show that the result derived in Example 24.4 (Section 24.1) for the capacitance of a cylindrical capacitor then reduces to Eq. (24.2), the equation for the capacitance of a parallel-plate capacitor, with A being the surface area of...

  • QUESTION 3 The textbook discusses 3 types of environmental degradation affecting the environment. Below, please match...

    QUESTION 3 The textbook discusses 3 types of environmental degradation affecting the environment. Below, please match each type of degradation discussed to the type of consequence suggested in the textbook. (Answer based on what the book says, not based on your personal opinion.) Air pollution A., is killinig humans 8,..isklin the earth Land poliution Water pollution address chiticar Watel Air Pollution Air pollution occurs when the release of materials to the atmosphere cannot be safelv disposed of by natural processes....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT