Question: (60 points): Create an animated 3D plot of a whirlpool. Using user inputs that ask for the number of rotations n and the growth rate

(60 points): Create an animated 3D plot of a whirlpool. Using user inputs that ask for the number of rotations n and the growth rate a. The animation must start at the largest values and go to the smallest values. a) Create a function file that checks the inputs of a and n to see if they are valid. If not valid, display the text not valid input and requests the user to input the value again. This continues until both inputs are valid. If an input is valid the user does not have to reenter the value again. The value of a must be > 0 and the value of n must be >0. (10 points) b) Create a function file that uses a and n as the inputs to calculate x, y, and z. (30 points) 0 Szsa x=r*cos(0) y = r*sin() c) Within the function file for part b create another function that calculates the pause time for the animation. The pause time = 10000 (10 points) d) Create a 3D animated plot that has 2 lines animated. Note the second line can just be the first's lines x and y coordinates times -1. Each line must be a different color. The axis of the plot is defined as 125*min(x) (z)>

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!