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

I have no clue on how to do this homework. The equivalent diameter of a circular

ID: 3686278 • Letter: I

Question

I have no clue on how to do this homework.

The equivalent diameter of a circular duct that provides the same pressure loss as a rectangular duct (see Figure 6.18) is given by the Huebsher equation:

d e = 1.3(ab) exponet 0.625 / (a +b ) exponet 0.25

d e is the equivalent diameter (mm or in).

a is the rectangular duct width (mm or in).

b is the rectangular duct height (mm or in)

Using this formula, write and test a C++ function named equivDuct() that accepts two double-precision arguments (one for the duct’s width and one for its height), and then cal-culates and returns the equivalent diameter for a circular duct that provides the same pressure loss as the rectangular duct having the width and height specified by function’s arguments. and to fill out the chart

width height height 4 4 6 8

Explanation / Answer

/** C++ code to calculate equivalent diameter of a circular duct that provides the same pressure loss as a rectangular duct given by the Huebsher equation: d e = 1.3(ab) exponet 0.625 / (a +b ) exponet 0.25 **/

#include <iostream>
#include <math.h>
using namespace std;

double equivDuct(double width, double height)
{
double diameter; // diameter holds the result
diameter = pow((width*height),0.625)/pow((width+height),0.25);
diameter = diameter*1.30;

return diameter;
}

int main() {

double height;
double width;

cout << "-------------------------- ";
cout << "width height height ";
cout << "-------------------------- ";
cout << " 4 4 ";
  
cout << "6 " << equivDuct(6,4) << " " << equivDuct(6,4) << endl;
cout << "8 " << equivDuct(8,4) << " " << equivDuct(8,4) << endl;

return 0;
}