Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include<stdio.

h>
#include<conio.h>
void main()
{
int D,L,V;
clrscr();
float I,Cp,Q,T4,T5,m,Qw,Ah,q;
printf("\nvoltage V=");
scanf("%d", &V);
printf("\ncurrent I=");
scanf("%f", &I);
printf("\nCp=");
scanf("%f", &Cp);
printf("\nm m=");
scanf("%f", &m);
Q=V*I;
printf("Discharge Q=%f",Q);
printf("\nDiameter of heater D=");
scanf("%d", &D);
printf("\nLength of heater L=");
scanf("%d", &L);
printf("\nTempreture,T4=");
scanf("%f", &T4);
printf("T5=");
scanf("%f", &T5);
Ah=(3.14*D*L)+((3.14/4)*D*D);
q=Q/Ah;
printf("q=%f",q);
Qw=m*Cp*(T5-T4);
printf("heat taken away by cooling water Qw=%f W",Qw);
getch();
}

You might also like