Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The power required to overcome the aerodynamic drag on a vehicle can be computed

ID: 2075040 • Letter: T

Question

The power required to overcome the aerodynamic drag on a vehicle can be computed from: (density)(speed)'cD(area) Power (6x10-s) (density)(speed) C, area) 3) Power where CD-is a unitless drag coefficient For the specified set of units, this equation becomes: Power (hp) or horsepower density (lb /ft speed (mph) area (a) Craft a MATLAB script that: Initializes the density to a value of 0.074, the area to a value of 30, and Co to a value of 0.3. Asks the user to enter a value for the speed in units of mph. Computes the drag at the specified speed, at a speed 10 mph lower, and at a speed 10 mph higher Displays to the Command Window in an easily read format, 3 lines of output. Each line shall present numbers, units, and brief text that makes that information meaningful. The first line presents the lower speed and the associated power requirement. The second line presents the specified speed and the associated power requirement. The third line presents the higher speed and the associated power requirement. .

Explanation / Answer

% Script file to calculate Power loss due to aerodynamic drag
clc;clear;
Den=0.074;a=30;cd=0.3; % Initilazing the Density,area,cd Values
v=input('Enter the speed of the vehicle in mph'); %To Prompt User to Enter the speed
v1=v-10;v2=v+10;
p=(6*10^-5)*(Den)*(v)^3*cd*a;
p1=(6*10^-5)*(Den)*(v+10)^3*cd*a; % Calculating the Power Loss
p2=(6*10^-5)*(Den)*(v-10)^3*cd*a;
fprintf('The Power Required to overcome Aerodynamic drag at %d mph velocity is %d hp ',v1,p2);
fprintf('The Power Required to overcome Aerodynamic drag at %d mph velocity is %d hp ',v,p);
fprintf('The Power Required to overcome Aerodynamic drag at %d mph velocity is %d hp ',v2,p1);

% Hope You Enjoyed the answer. For Quires Please Comment

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote