Question: Please answer asap. Thanks! Using EXCEL developer, not Matlab please. Problem 1 (70 points) Using modular programming, write a VBA code that allows the user
Please answer asap. Thanks!
Using EXCEL developer, not Matlab please.

Problem 1 (70 points) Using modular programming, write a VBA code that allows the user to select a cone or a sphere or a cylinder geometry and the dimensions of the shape, calculates the surface area and volume of whichever shape was entered, and then outputs the results. Your output should use a Format or Round statement. Your output should also show Please select cone or sphere or cylinder" if the user input anything other than cone or sphere or cylinder. Your final code should contain five subprograms: a) Main subprogram that takes input from the user on which shape they want calculated and the dimensions of that shape b) Subprogram to perform calculations for a cone c) Subprogram to perform calculations for a sphere d) Subprogram to perform calculations for a cylinder e) Subprogram to output results of the calculations - the output results should indicate the shape, its dimensions, its area, and its volume. Note: Sphere Cone Surface area 4*pir^2 2*pi*r*s/2+pi*r^2 where s = sqr(r^2+h^2) 2*pi*r*h+2*pi*r^2 Volume 4/3*pir^3 pi*r2*h/3 Cylinder pir 2*h Problem 1 (70 points) Using modular programming, write a VBA code that allows the user to select a cone or a sphere or a cylinder geometry and the dimensions of the shape, calculates the surface area and volume of whichever shape was entered, and then outputs the results. Your output should use a Format or Round statement. Your output should also show Please select cone or sphere or cylinder" if the user input anything other than cone or sphere or cylinder. Your final code should contain five subprograms: a) Main subprogram that takes input from the user on which shape they want calculated and the dimensions of that shape b) Subprogram to perform calculations for a cone c) Subprogram to perform calculations for a sphere d) Subprogram to perform calculations for a cylinder e) Subprogram to output results of the calculations - the output results should indicate the shape, its dimensions, its area, and its volume. Note: Sphere Cone Surface area 4*pir^2 2*pi*r*s/2+pi*r^2 where s = sqr(r^2+h^2) 2*pi*r*h+2*pi*r^2 Volume 4/3*pir^3 pi*r2*h/3 Cylinder pir 2*h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
