Question: Make a structure to model time with Hour, Minute, Second, and AM_PM (char). Write a function that takes two times and returns either of three

Make a structure to model time with Hour, Minute, Second, and AM_PM (char). Write a function that takes two times and returns either of three values. It returns O if both times are the same. It returns 1 if the first time is after the second time. It returns - 1 if the first time is before the second time. For example, 6:30:10 PM is after 11:55:40 AM. In the main program test your function. W 1/ Paste your code here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
