The name of your C program file must be called timediff.c, files with any other name will not be marked.
You are expected to spend a maximum of 2 hours for this assignment.
Write a program that prompts the user for the starting time and ending time, and calculates and displays the time difference.
Hint: The "%02i" format specifier may be useful for displaying an integer in the format shown in the sample run below.
$ gcc -Wall timediff.c -o timediff $ ./timediff Enter starting hour, minute, and second: 1 2 3 Enter ending hour, minute, and second: 13 12 11 The starting time is: 1:02:03 The ending time is: 13:12:11 The time difference is: 12:10:08 $ ./timediff Enter starting hour, minute, and second: 11 46 39 Enter ending hour, minute, and second: 22 31 17 The starting time is: 11:46:39 The ending time is: 22:31:17 The time difference is: 10:44:38 $
A total of 12 different hosts have accessed this document in the last 445 days; your host, 216.73.216.39, has accessed it 1 times.
If you're interested, complete statistics for this document are also available, including breakdowns by top-level domain, host name, and date.