Question
Write a C++ program for.. The drag force on a car is given by FD=12??2ACD Newtons where: ? is the density of air (1.225 kg/m3),
Write a C++ program for..
The drag force on a car is given by
FD=12??2ACD Newtons
where:
? is the density of air (1.225 kg/m3),
v is the velocity in units of m/s,
and A is the projected area of the car (assume 2.5 m2),
CD is the (dimensionless) drag coefficient of the car, which ranges from 0.05 for a highly streamlined race car to 0.75 for a flat-nosed van.
The amount of power in watts required to overcome such drag force is P = FDv, and the equivalent horsepower required is hp = P / 746.
Write a program that accepts a car's velocity and drag coefficient and computes the power in watts and in horsepower needed to overcome the resulting drag force. Note: 1 mph = 0.447 m/s.
Identify and build at least two Incremental Build increments (you may use more) you used as you developed the program. Indicate how you tested each increment.
increment 1:
Increment 2:
Test Cases to be submitted:
v (mph) | CD |
50 | 0.3 |
100 | 0.3 |
200 | 0.3 |
200 | 0.05 |
p2ACD D2
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