Following a Stored Temperature Estimate

A temperature-monitoring program updates a stored estimate using each new reading:


C
double estimate_K = 290.0;
const double reading_K[] = {298.0, 302.0, 294.0};

for (int i = 0; i < 3; ++i) {
    estimate_K += 0.20 * (reading_K[i] - estimate_K);
}


The factor 0.20 is the specified dimensionless update weight. Calculate the final value of estimate_K. Neglect intermediate rounding and answer in K, to two decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Implementation of Algorithms Using C Questions: