Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

App Inventor

Authors: David Wolber, Hal Abelson

1st Edition

1449397484, 9781449397487

More Books

Students also viewed these Programming questions