Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started