Question: write c code 1. Work with structs 2. Research API calls 3. Write more algorithms in C This idea behind this is very simple... write

write c code
write c code 1. Work with structs 2. Research API calls 3.

1. Work with structs 2. Research API calls 3. Write more algorithms in C This idea behind this is very simple... write a countdown timer that prints the number of days, minutes and seconds from some fixed (hardcoded) date. It can count upwards or downwards. It should "count" once per second, so you'll likely have to research a function that can pause for 1 second. After 10 seconds, it should quit. You are required to use struct tm to convert a reference time. The output of the program should be in the following strict format: Reference time: Thu May 4 22:41:00 2000 Years: 22 Days: 277 Hours: 9 Minutes: 59 Seconds : 57 Years: 22 Days: 277 Hours: 9 Minutes: 59 Seconds: 58 Years: 22 Days: 277 Hours: 9 Minutes: 59 Seconds: 59 Years: 22 Days: 277 Hours: 10 Minutes: 0 Seconds: 0 Years: 22 Days: 277 Hours: 10 Minutes: 0 Seconds: 1 Years: 22 Days: 277 Hours: 10 Minutes: 0 Seconds: 2 Years: 22 Days: 277 Hours: 10 Minutes: 0 Seconds: 3 To make Catnap, use the following commands \$ make Compile your program $ make test Compile your program and run it $ make debug Compile your program with debug mode (DEBUG is defined) $ make clean Remove any compiler output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!