Review the CSV data file looking for patterns. The web dashboard motif doesn't apply well to the C language. Interactive control instructions are too vague to implement. The solution is to output a record at a time, paralleling the current time of day. A full-screen version would be written in text mode by using the ncurses library.
- [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.…
Pulsometer progresses from one to 256…
Skill Level Intermediate
1. Summarize the Weather
2. Geolocation with C
3. Eight Queens with C
4. Build a Musical Instrument with C
5. Face Recognition with C
6. Web Dashboards with C
Next steps1m 2s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.