Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started