Write a function called hms_to_sec() that takes three int values – for hours, minutes, and seconds as arguments, and return the equivalents time in seconds (type long). Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes and seconds from the user (format 12:59:59), calling the function, and displaying the value of the seconds it returns.
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.