Learn how the plain output version of the code shows one line of data at a time as each second passes by. Discover the full-screen, text-mode ncurses version of the program is more visually interesting; it shows a scrolling time window along with varying engine efficiency values.
- [Instructor] The output from my first solution…is admittedly, boring.…When run, it pauses as it reads through the data file,…looking for the matching time of day.…Once found, records begin appearing one line at a time,…each time stamp in the file matching…the current time of day.…And it just keeps running until you press control C…to break it.…I tried shortening some of the names…so that the output fits neatly…on a 80 column terminal window.…Then again, this output isn't supposed to be pretty,…so I kept all the labels long and unabbreviated.…
The end curses version is far more visual stimulating…and more in line with what I believe is the dashboard…part of this assignment.…The time of day scrolls through the box on the left…with the current time highlighted.…The engine efficiency thermometer hops up and down…depending on the percentage value.…And the three color values appear in their colors,…the numbers changing with every tick of the pulsometer.…I didn't add any controls,…mostly because I never really understood how the values…
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.