My code is plagued with errors so I am not even going to attach it. (Trust me, it is for the better). I would appreciate your help greatly. Within the code, could you please use lots of comments so I understand the way and reasons behind why you decided to code it that way. below is the actual text of the assignment... Write a simple C program that contains a function elapsed_time that takes as it arguments two time structures and returns a time structure that represents the elapsed time (in hours, minutes, and seconds) between the two times. So the call elapsed_time (time1, time2) where time1 represents 3:45:15 and time2 represents 9:44:03 should return a time structure that represents 5 hours, 58 minutes, and 48 seconds. Be careful with times that cross midnight. Your program should take, as input at the terminal, the two times from the user. Write a function called clockKeeper that takes as its argument a dateAndTime structure. The function should call the timeUpdate function, and if the time reaches midnight, the function should call the dateUpdate function to switch over to the next day. Have the function return the updated dateAndTime structure and output it to the terminal At the end of the code could you please put in a long note in how you implemented error handling in the application. (or better yet you could just provide comments within the code to how as well.)
Get Free Quote!
438 Experts Online