From the course: Code Clinic: C

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Puzzling over the problem

Puzzling over the problem - C Tutorial

From the course: Code Clinic: C

Start my 1-month free trial

Puzzling over the problem

- [Instructor] Three things entered my brain when this problem was first presented. What's up with the data? Which is the meat of the program. What the heck is a web dashboard? And pertaining to the optional challenge, how does one interactively control the web dashboard? First, the easy part, what's up with the data? I looked and it's a plaintext CSV file. It contains six consistent fields after the header row. A timestamp string, which I'd have to extract, and I've done that before, so I'm good. Then comes the pulsometer, whatever that is. A floating point value for engine efficiency, and then three color values, red, blue, and green. I opened the CSV file in Excel to examine the minimum and maximum values for each field and determine the data types. The timestamp is a string, though it covers a 24 hour cycle with entries for each second. That's a total of 86,401 entries, which is one more than the total number of seconds in a day because the first minute of the next day is counted.…

Contents