E entibilitlcde-adto thi: P Layoul Rislerences Mailings Review VIW elp Search A A Aa- Ao AaBbCcl AaBbCc AaßbCe AaBb...
E entibilitlcde-adto thi: P Layoul Rislerences Mailings Review VIW elp Search A A Aa- Ao AaBbCcl AaBbCc AaßbCe AaBbCel AaBbCeD A 2-A - Emphasis 1 Heading 1 1 Normal Strong Subtitle Paragraph Styles Problem 3. Write a MATLAB script that will calculate the volume and surface area of a paper cup shaped as a frustum of cone. Request (by input) Request the height of the cup from keyboard and name it h Calculate volume of the cup and the surface area of the paper by: a vector that has two radi1 Ri R2] of the cup from keyboard and name it r 2 V =-th(R +R, +RR,) S=(R+R,)(R, -R) +h +TR and print the formatted output (use fprint similar to the following example Bottom radius = 3.5 cm, top radius 4.0 cm and height 12.0 cm The volume is 530.93 cm 3 and surface are is 321.47 cm 2 1S 15.0 cm 1) r [3.0 3.8 ] cm and h 9.5 cm, and 2) r= [3.0 4.2 Print your script and results of test runs from the command window. cm and h Do test runs
E entibilitlcde-adto thi: P Layoul Rislerences Mailings Review VIW elp Search A A Aa- Ao AaBbCcl AaBbCc AaßbCe AaBbCel AaBbCeD A 2-A - Emphasis 1 Heading 1 1 Normal Strong Subtitle Paragraph Styles Problem 3. Write a MATLAB script that will calculate the volume and surface area of a paper cup shaped as a frustum of cone. Request (by input) Request the height of the cup from keyboard and name it h Calculate volume of the cup and the surface area of the paper by: a vector that has two radi1 Ri R2] of the cup from keyboard and name it r 2 V =-th(R +R, +RR,) S=(R+R,)(R, -R) +h +TR and print the formatted output (use fprint similar to the following example Bottom radius = 3.5 cm, top radius 4.0 cm and height 12.0 cm The volume is 530.93 cm 3 and surface are is 321.47 cm 2 1S 15.0 cm 1) r [3.0 3.8 ] cm and h 9.5 cm, and 2) r= [3.0 4.2 Print your script and results of test runs from the command window. cm and h Do test runs