well im trying to make a program that calculates the overall rate of heat loss from a cylindrical tank, given the dimensions of the tank, the thermal conductivity of the tank walls, and the internal and external temperatures.
now i got this fa but im stuck cause when i run i get the wrong numbers
/* CylindricalTank.cpp
This program was written by Tyrone Harris on january 30 2010 for cs 109
This program is a simple computer program that calculates the overall rate
of heat loss from a cylindrical tank, given the dimensions of the tank, the thermal conductivity
of the tank walls, and the internal and external temperatures.
*/
double qw(0.0),k(0.0),A(0.0),W(0.0),TH(0.0),TC(0.0),total(0.0),L(0.0),r1(0.0),r0(0.0) ;
double pie =3.14159;
cout << "Hi my name is and this program you will be using is a simple computer program that calculates the overall rate of heat loss from a cylindrical tank. so let do some work\n\n " ;
cout << " so we will begin by entering a few simple figures to calculte the Heat conduction through a flat solid wall so begin by entering the height of the tank" ;
cin >> L;
cout << "Please enter the inside radius" ;
cin >> r1;
cout << "Please enter the thickness of the tank" ;
cin >> W;
cout << "Please enter the thermal conductivity of the tank walls" ;
cin >> k;
cout << "Please enter the temperature inside the tank" ;
cin >> TH;
cout << "Please enter the temperature outside the tank walls" ;
cin >> TC;