C socket program on UNIX

Write a C socket program on UNIX where a TCP client sends/reads a

time in decimal 24 hours format to the server and the server echoes the

seconds, minutes, and hours in the time.

Example: Client sends 18.78 hours and the server displays 18 hours, 46

minutes and 48 seconds.

homework ?