/* Lab 4 Wrapper Program */ #include #include #define TRUE 1 /* Put your function prototypes here */ int main(void) { int t; float ax, ay, az; while (TRUE) { scanf("%d,%f,%f,%f", &t, &ax, &ay, &az); /* CODE SECTION 0 */ printf("Echoing output: %d, %f, %f, %f\n", t, ax, ay, az); /* CODE SECTION 1 printf("At %d ms, the acceleration's magnitude was: %f\n", t, mag(ax, ay, az)); */ /* CODE SECTION 2 printf("At %d minutes, %d seconds, and %lf milliseconds it was: %f\n", minutes(t), seconds(t), millis(t), mag(ax,ay,az)); */ } return 0; } /* Put your functions here */