Question: using matlab, help in a new line in the Command Window when run). The two equations below give the calculations for the volume and mass

using matlab, help

in a new line in the Command Window when run). The two equations below give the calculations for the volume and mass of a cone: h V = nr 2 3 m = Vp where Vis volume, ris radius, m is mass, and p is density. a) Ask the user to input the radius of the base of the cone in millimeters. This input should be a number. b) Ask the user to input the height of the cone in millimeters. This input should be a number. c) Ask the user to input the material the cone is made of. This input should be a string. d) Ask the user to input the density of the material in grams per cubic millimeter. This input should be a number. e) Perform the calculation necessary to obtain the mass of the cone based on the user inputs. f) Display the mass of the cone using fprintf. The fprintf statement should have the following format. The bold arguments represent the user inputs and calculated mass. The mass of a 25.5mm radius cone with a height of 152.4mm made of wafer is 231.6g. *Note: Make sure you use the correct field types in the fprintf statements to match the example above. Do not include the bold formatting in your statement, the bolded inputs in the example are just there to show where the user inputs will be displayed. In this problem, you will be writing a program that calculates the mass of a cone based on some user inputs. Make sure to separate all input statements and fprintf statements by a line (i.e., each step below should print
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
