Question: Create the following functions: volCube - receives the side length of a simple cube and returns the volume volRectPrism - receives the length, width, and

Create the following functions: volCube - receives the side length of a simple cube and returns the volume volRectPrism - receives the length, width, and height of a rectangular prism and returns the volume volSphere - receives the radius of a sphere and returns the volume volCylinder -receives the radius and height of a cylinder and returns the volume Now, create a script that uses an if-else statement to produce a menu of the functions in Problem 3. If an entry is provided that is not a valid choice, provide the statement: 'Not a valid choice. Create another script that uses switch-case to produce a menu. Also, provide this menu in a dialog box for the user. Note: You can change the dialog box size if needed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!