Question: Subplot: A vehicle driving on a straight road at constant speed must overcome two resistive forces: aerodynamic drag and rolling resistance. These two forces (in

 Subplot: A vehicle driving on a straight road at constant speed

Subplot: A vehicle driving on a straight road at constant speed must overcome two resistive forces: aerodynamic drag and rolling resistance. These two forces (in N ) as a function of velocity are: Fa=21CdAv2;Frr=(Cr0+Cr1v)mg;m=1500kg,=1.225kg/m3,g=9.8m/s2,A=1.5m2,Cr0=0.01,Cd=0.4Cr1=1e4 where all variables are constant except for velocity, v. The values above represent a typical passenger vehicle. Calculate the value of Fa and Fx for the value of v starting from 0 upto 50mph with an increment of 0.5 and create a subplot with top half with the plot of FavSv and the bottom half with the plot of Fx vs v. Loop: Prompt the user for a maximum velocity between 20 and 40m/s, inclusive. Add a whileloop to keep prompting if the user enters invalid data. Store the valid value in a variable called MAX. Then use the equations and the constants in question 2 to plot the graphs of Fa vs v and Frr vs v for the value of v starting from 0 upto MAX with an increment of 0.5. Hint: your loop logical condition should have two OR expressions. Hint: Use input() File I/O: In continuation with question 2, open a text file called "drag.txt" for write-access. On the first line of the file, print the header "v FaFx "" to label the data columns. Next

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 Databases Questions!