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);
Kindly revert for any queries
Thanks.
uys the (d) What is the total sale of each product for the 3 months period...
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 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 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....