I have given an assignment in c and i have no idea about C as such except some basic programming. I would appreciate if someone can help me how to do this.

The given "input.txt" is the file generated by an attendance swipe machine, in a comapny "ABC" in a particular day. In the "input.txt" file, first column is name of the employee ,second column is movement detail, and third coumn is time.Write a C program to parse the input file "input.txt" collected on any working day,and calculate the total working time of each and every employee of "ABC" company on that particular day .Program must be able to display the total working time of each and every employee against their name for any working day.In the result, the name should appear in alpabhetical order.Consider,"input.txt" is a test vector.

The input.txt file is -


Ram in 08:26
Ravi in 08:45
Sagar in 09:17
abdul in 09:24
Ram out 09:25
Ramya in 09:27
Ram in 10:03
Ravi out 12:20
abdul out 12:24
sagar out 12:30
Ravi in 13:03
Ram out 13:10
sagar in 13:12
abdul in 13:15
Ramya out 13:20
Ram in 13:25
Ramya in 13:45
Ravi out 18:30
Ram out 19:00
sagar out 19:15
abdul out 19:30
Ramya out 19:45