In: Physics
Answer:-
The below is the required source code for the given problem using C++
Code:-
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int l,h;
double b, initTemp,emissivity;
double roomTemp;
cout<<endl<<"Enter the details of Square metal
plates";
cout<<endl<<"Thickness: ";
cin>>b;
cout<<endl<<"Size (length, height): ";
cin>>l;
cin>>h;
cout<<"Initial temperature: ";
cin>>initTemp;
cout<<endl<<"Emissivity: ";
cin>>emissivity;
cout<<endl<<"Enter room temperature: ";
cin>>roomTemp;
double heatLoss;
double tempDrop;
double Ts=initTemp;
cout<<endl<<"Time interval \t HeatLoss \t temperature
drop"<<endl;
for(int t=15;t<150;t+=15)
{
heatLoss=emissivity*5.67*exp(-1*8)*t*(l*b*h)*pow(roomTemp-Ts,4);
tempDrop=initTemp-heatLoss;
Ts-=roomTemp-tempDrop;
cout<<t<<" \t "<<heatLoss<<" \t
"<<tempDrop<<endl;
}
return 0;
}