Except your question I do not see any other question. As for assignment the program must convert a value specified in seconds to numbers of hours, minutes and seconds.
Write a program that takes a decimal number from the user (18,000 is the maximum). Take the number given by the user, and convert it into time. For example: