The CP for many materials can be expressed by the polynomial: Cp, m = k + a T +
ID: 3697414 • Letter: T
Question
The CP for many materials can be expressed by the polynomial: Cp, m = k + a T + b T 2 + c T 3
(1) Write a C code to compute the thermodynamic functions molar Enthalpy (H) and Entropy (S), with an option for user to input the temperature range, the number of intervals (n) to compute the area under the curve using the Simpson’s 1/3 rule, the coefficients a, b, c and constant k in the polynomial approximation of Cp.
(2) Using the code developed in the previous task compute molar H and S for -ZrO2. Based on experimental observations the Cp of -ZrO2. can be written as: Cp, m = 69.62 + 7.53 10-3 T - 14.06 105 T -2 . Calculate the Enthalpy (H) and Entropy (S) for the above material using the following values:
Explanation / Answer
#include #include #include void main() { float x[10],y[10],sum=0,h,temp; int i,n,j,k=0,l=0; float fact(int); clrscr(); printf(" how many record you will be enter: "); scanf("%d",&n); for(i=0; iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.