Can someone convert this to C programming language?
#include using namespace std; class phyfor { public: void calcH//fucntion to calulate rate of heat transfer { double K,A,T1,T2,X,H; cout<<"Coefficient of thermal conductivity (W/m-K) : "<>K; cout<<"Cross-sectional area of conductor (m^2) : "<>A; cout<<"Temperature on one side (K) : "<>T2; cout<<"Temperature on other side (K) : "<>T1; cout<<"Thickness of conductor (m) : "<>X; H=K*A*(T2-T1)/X; cout<<"Rate of heat transfer (watts) : "<>H; cout<<"Cross-sectional area of conductor (m^2) : "<>A; cout<<"Temperature on one side (K) : "<>T2; cout<<"Temperature on other side (K) : "<>T1; cout<<"Thickness of conductor (m) : "<>X; K=((H*X)/A)*(T2-T1); cout<<"Coefficient of thermal conductivity : "<>H; cout<<"Coefficient of thermal conductivity (W/m-K) : "<>K; cout<<"Temperature on one side (K) : "<>T2; cout<<"Temperature on other side (K) : "<>T1; cout<<"Thickness of conductor (m) : "<>X; A=(H*X)/K*(T2-T1); cout<<"Cross-sectional area of conductor : "<>H; cout<<"Coefficient of thermal conductivity (W/m-K) : "<>K; cout<<"Cross-sectional area of conductor (m^2) : "<>A; cout<<"Temperature on one side (K) : "<>T2; cout<<"Temperature on other side (K) : "<>T1; X=K*A*(T2-T1)/H; cout<<"Thickness of conductor : "<>H; cout<<"Coefficient of thermal conductivity (W/m-K) : "<>K; cout<<"Cross-sectional area of conductor (m^2) : "<>A; cout<<"Temperature on one side (K) : "<>T2; cout<<"Thickness of conductor (m) : "<>X; T1=-(H*X/K*A-T2); cout<<"Temperature on other side : "<>H; cout<<"Coefficient of thermal conductivity (W/m-K) : "<>K; cout<<"Cross-sectional area of conductor (m^2) : "<>A; cout<<"Temperature on one side (K) : "<>T2; cout<<"Thickness of conductor (m) : "<>X; T2=H*X/K*A+T1; cout<<"Temperature on one side : "<>ch; phyfor obj; //object of the class switch(ch) //calling the respective fucntion { case 1: obj.calcH(); break; case 2: obj.calcK(); break; case 3: obj.calcA(); break; case 4: obj.calcT2(); break; case 5: obj.calcT1(); break; case 6: obj.calcX(); break; default: cout<<"Invalid Choice"; break; } return 0; }
#include<stdio.h>
int main()
{
double K,A,T1,T2,X,H;
void calcH() //fucntion to calulate rate of heat transfer
{
printf("Coefficient of thermal conductivity (W/m-K) :&d
",K);
printf("Cross-sectional area of conductor (m^2) : &d",A);
printf("Temperature on one side (K) : &d",T2);
printf("Temperature on other side (K) : &d",T1);
printf("Thickness of conductor (m) : &d",X);
H=K*A*(T2-T1)/X;
printf("Rate of heat transfer (watts) : &d",H);
}
void calcK()
{
printf("Cross-sectional area of conductor (m^2) : &d",A);
printf("Temperature on one side (K) : &d",T2);
printf("Temperature on other side (K) : &d",T1);
printf("Thickness of conductor (m) : &d",X);
K=((H*X)/A)*(T2-T1);
printf("Coefficient of thermal conductivity : &d",K);
printf("Coefficient of thermal conductivity (W/m-K) :
&d",K);
}
void calcA()
{
printf("Temperature on one side (K) : &d",T2);
printf("Temperature on other side (K) : &d",T1);
printf("Thickness of conductor (m) : &d",X);
A=(H*X)/K*(T2-T1);
printf("Cross-sectional area of conductor : &d",H);
printf("Coefficient of thermal conductivity (W/m-K) :
&d",K);
printf("Cross-sectional area of conductor (m^2) : &d",A);
}
void calcX()
{
printf("Temperature on one side (K) : &d",T2);
printf("Temperature on other side (K) : &d",T1);
X=K*A*(T2-T1)/H;
printf("Thickness of conductor : &d",H);
printf("Coefficient of thermal conductivity (W/m-K) :
&d",K);
printf("Cross-sectional area of conductor (m^2) : &d",A);
}
void calcT1()
{
printf("Temperature on one side (K) : &d",T2);
printf("Thickness of conductor (m) : &d",X);
T1=-(H*X/K*A-T2);
printf("Temperature on other side : &d",H);
printf("Coefficient of thermal conductivity (W/m-K) :
&d",K);
printf("Cross-sectional area of conductor (m^2) : &d",A);
}
void calcT2()\
{
printf("Temperature on one side (K) : &d",T2);
printf("Thickness of conductor (m) : &d",X);
T2=H*X/K*A+T1;
}
printf("Temperature on one side : &d",ch);
switch(ch) //calling the respective fucntion
{
case 1: calcH();
break;
case 2: calcK();
break;
case 3: calcA();
break;
case 4: calcT2();
break;
case 5: calcT1();
break;
case 6: calcX();
break;
default: printf("Invalid Choice");
break;
}
return 0;
}
Can someone convert this to C programming language? #include using namespace std; class phyfor { public:...
Write a program using a collection of functions to solve simple conduction problems using various forms of the formula H = k * A * (T2-T1)/X H = k * A * (T2-T1)/X Temperature on the other side is 274 K. H = 755.0 W T2 = 298 K k = 0.800 W/m-k T1 = 274 K A = 0.120 m^2 X=0.003 m where H is the rate of heat transfer in watts, k is the coefficient of thermal conductivity...
Problem 1. (75') This is a 1-D steady state problem. Only object A generates heat per unit volume of dA 2 x 106W/m3. The left surface of A is insulated and the right surface of B is exposed to a fluid. Temperature of the fluid is To 300 K. The convective heat transfer coefficient is h 1000 W/m2/K Thermal conductivity of A is kA 30 W/m/K, and B is k 20 W/m/K Thickness of each object is: IA-30 mm, 1':...
Heat conduction occurs through any material, represented here by a rectangular bar, whether window glass or walrus blubber. The temperature of the material is T2 on the left and T1 on the right, where T2 is greater than T1. The rate of heat transfer by conduction is directly proportional to the surface area A, the temperature difference T2 - T1, and the substance's conductivity k. The rate of heat transfer is inversely proportional to the thickness d. Q kA (T2-T)...
PLEASE ANSWER ALL PARTS OF THE
QUESTION: Case1, Case 2: a,b
••• Weekly Comprehensive Assign ® V Weekly Comprehensive Assign X + a pp varafy.com/lti/v1p1?custom assignment_revision_resource_id=5dcf22405b33ca000406f4ae&custom_attempt_penalties=0&cust... Q € > c S # D Heat Conduction Heat conduction occurs through any material, represented here by a rectangular bar, whether window glass or walrus blubber. The temperature of the material is T2 on the left and T1 on the right, where T2 is greater than T1. The rate of heat transfer by...
PLEASE ANSWER a,b,c
Heat Conduction Heat conduction occurs through any material, represented here by a rectangular bar, whether window glass or walrus blubber. The temperature of the material is T2 on the left and T1 on the right, where T2 is greater than T1. The rate of heat transfer by conduction is directly proportional to the surface area A, the temperature difference T2 - T1, and the substance's conductivity k. The rate of heat transfer is inversely proportional to the...
find the rate of conduction in the room given: External Temperature (T2): 26˚C or 299.15K Average Temp Room (T1): 19.8˚C or 292.95K Wall thickness (d): .283m Thermal conductivity (k): 1.04 W/m˚C Area (m2): 3.75 m2
Heat conduction occurs through any material, represented here by a rectangular bar, whether window glass or walrus blubber. The temperature of the material is T2 on the left and T1 on the right, where T2 is greater than T1. The rate of heat transfer by conduction is directly proportional to the surface area A, the temperature difference T2 - T1, and the substance's conductivity k. The rate of heat transfer is inversely proportional to the thickness d. Q kA (T2-T)...
Consider a rectangular bar of thermal conductivity k W/m-K and
total length 2L, as shown in the figure, is connected to a hot
surface that is at a temperature T1. The connection between the bar
and the surface is imperfect and results in a thermal contact
resistance of R’’ m2-K/W. The width of the rod into the depth of
the paper is W meters and the thickness of the rod is t meters. The
first section of the rod of...
III. Convective coefficient (40 pt). An electric wire having diameter of 6.0 mm and covered with a plastic insulation (thickness 2.0 mm; thermal conductivity: 0.4 W/m K) is exposed to air at 300 K. The heat loss per meter of wire generated is 200 W/m. Determine: ) Convective heat-transfer coefficient between the insulation and the surrounding air, h (25 pt) 2) Temperature of the insulation surface T2. (15 pt) HINT: T2 is a value between 320K and 400K To T2...
Two metal plates are being joined through the use of a weld rod. The electric current, L, through the weld rod, causes thermal energy generation along the length of the weld rod. At the same tin the weld rod due to the hotness of the weld zone and convected into the surrounding ambient across the eylindrical surface of the rod. Formulate a differential equation which governs the temperature profile in the weld rod. Assume steady state. You do not need...