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

Need assistance I have no clue how to write program. Write a C++ program that ca

ID: 3676765 • Letter: N

Question

Need assistance I have no clue how to write program. Write a C++ program that calculates the Reynolds number for a pipe having a diameter of 0.1 meters, in which fluid flows at an average rate of .09 m/s. Your program should have a fixed-count loop of four and display both the calculated Reynolds number and the type of fluid flow—laminar, in transition, or turbulent—for each fluid listed in the following chart. Use the results your program outputs to fill in the last two columns of this chart

:
The Reynolds number can be calculated by using this formula: Re = V × d /
Re is the Reynolds number.
V is the average speed of the fluid (ft/sec or m/s).
d is the pipe diameter (ft or m)
. is the kinematic viscosity (ft 2 /sec or m 2 /s).
For the determination of flow type, use these facts: Re < 2000: Fluid flow is smooth (laminar)
.2000 Re 3000: Fluid flow is in transition.
Re > 3000: Fluid flow is turbulent.

using this chart

Fluid K Viscosity Pipe Diameter Avg Fluid Speed Reynolds # Type of Flow Gas .0622 * pow (10, -5) 0.1 .09 Fuel Oil .3523 * pow(10, -5) 0.1 .09 Lubriacting Oil 9.5966 * pow(10,, -5) 0.1 .09 Water .899 * pow(10, -5) 01 .09

Explanation / Answer

#include<iostream>

#include<math.h>

using namespace std;

int main()

{

//PLEASE REFER TO THE VICOSITY CONDITION
int re;


float V=0.09;//here they have given Avg fluid rate is constant so iam initializing V=0.09

float d=0.1;//here they have given pipe diameter(d) is contant is constant so iam initializing d=0.1

//here when you see table all of the V and d all of them are constant so iam initializing V=0.09 and d=0.1

//so here there is no need of array

float v[4];//for storing viscosity values of all the fluid

string fluid[5]={"Gas","FuelOil","LubriactingOil","Water"};

//use following code by removing comments if you want to enter through keyboard(EX:if 0.0622*pow(10,-5)
//is there then enter only 0.0622 our prg will multiply the valuewith pow(10,-5)
/*cout<<"Enter viscosities ";


for(int i=0;i<4;i++)

{

cout<<"Enter viscosity os"<<fluid[i]; //here just enter viscosity without power

cin>>x

x=x*pow(10,5);

v[i]=x;
}*/
// remove above comments for for loop and cout so you can enter through keyboard as explained in above comments
//OR USE THE FOLLOWING ALTERNATIVE CODE
//the values which you have given are taken belowss
v[0]=0.0622*pow (10, -5);
v[1]=0.3523*pow(10, -5);
v[2]=9.5966*pow(10, -5);
v[3]= 0.899*pow(10, -5);

for(int i=0;i<4;i++)
{

re=(float)(0.09*0.1)/v[i];
if(re<2000)
{
cout<<fluid[i]<<" "<<v[i]<<"     "<<0.1<<"   "<<0.09<<"   "<<re<<"   "<<"Fluid flow is smooth (laminar)"<<endl;
}
if(2000<=re && re<=3000)//I CHANGED THIS CONDITION FROM 2000 Re 3000 to 2000<=re && re<=3000
{
//please use your good decision for above condition you can change it as you want
cout<<fluid[i]<<" "<<v[i]<<"   "<<0.1<<"   "<<0.09<<"   "<<re<<"   "<<"Fluid flow is in transition"<<endl;
}
if(re>3000)
{
cout<<fluid[i]<<"   "<<v[i]<<"     "<<0.1<<"   "<<0.09<<"   "<<re<<"   "<<"Fluid flow is in turbelent"<<endl;
}
}

return 0;
}

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