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

6. When an aircraft or an automobile is moving through the atmosphere, it must o

ID: 3732815 • Letter: 6

Question

6. When an aircraft or an automobile is moving through the atmosphere, it must overcome a force called drag that works against the motion of the vehicle. The drag force can be ex- pressed as where Fis the force (in ans), CD is the drag coeficient, A is the projected area of the vehicle perpendicular to iha velocity vector (in m2), is the density of the gas or fluid through which the hody is traveling (kg/m), and V is the body's velocity. The drag coeft cient CD has a complex derivation and is frequently an empirical quantity. Sometimes the drag coefficient has its own dependencies on velocities: For an automobile, the range is from approximately 0.2 (for a very streamlined vehicle) through about 0.5. For simplic- ity, assume a streamlined passenger vehicle is moving through air at sea level (where p 1.23 kg/m). a function Write a program that allows a user to input A and CD interactively and calls to compute the drag force. Your program shouid display a table showing the

Explanation / Answer

// Program in c++ to compute drag force
#include<iostream.h>
#include<conio.h>

void dragforce(float,float); // prototype of function
void main()
{
float cd , a ;
cout<< " Enter the value drag coefficient (in newtons) ":
cin>> cd;
cout<<" Enter the value of projected area of the vechile perpendicular to the velocity vector ( in m2) ";
cin>>a;
dragforce(cd,a); //function call
getch();
}
void dragforce( float cd, float a)
{
float f , p=1.23 , v=0.2 ;
f= ( 0.5 * ( cd * a * p * ( v*v) ) ) ;
cout << " drag force ffor the vechile will be = " << f ;
}