/* bloodTests: Results of blood tests made on consecutive days Example: Enter test result: 9 Enter test result: 23 Enter test result: 4 Enter test result: 3 Enter test result: 10 Enter test result: 1 Enter test result: 2 Enter test result: 2 Enter test result: 27 Enter test result: 2 The closest to norm 15 was 10. The maximum difference between consecutive days was 25. */ #include int count, /* Day */ NORM, /* Normal level of lambda-hormone */ test_res, /* Test result of the day */ yesterday, /* Test result of yesterday */ CLOSEST, /* Test result closest to the normal level */ max_delta = 0; /* Maximum difference between consecutive days */ int main (void) { NORM = 15; count = 10; printf("Enter test result: "); scanf("%d", &test_res); CLOSEST = test_res; /* At the beginning, the first one is closest */ count--; while (count > 0) { yesterday = test_res; printf("Enter test result: "); scanf("%d", &test_res); if (abs(test_res-NORM) < abs(CLOSEST-NORM)) CLOSEST = test_res; if (abs(test_res-yesterday) > max_delta) max_delta = (abs(test_res-yesterday)); count--; } printf("The closest to norm %d was %d.\n", NORM, CLOSEST); printf("The maximum difference between consecutive days was %d.\n", max_delta); return(0); } Modify the above program to look for the hormone value furthest away from the normal level instead of the nearest value.