/* Name: Andrew Charles Breiner * Homework 1 * Section 2.5, Page 72, Program 1 * Writes the mathematical statement, q = kA(T1-T2)/L in C */ #include /* printf, scanf definitions */ int main(void) { double k, A, T1, T2, L, q; /* declares as type double */ k = 0.8; /* Boltzmann constant */ A = 24.0; /* Area */ T1 = 300; /* Initial Temperature */ T2 = 292; /* Final Temperature */ L = 0.3; /* Length */ /* Compute q */ q = (k * A * (T1 - T2)) / L; /* Output q */ printf("q = %.2f W\n", q); return 0; } //main