Assigning projects in order of priority
Clash Royale CLAN TAG #URR8PPP 5 1 Let's assume we have the following situation: Multiple project topics exist, each corresponding to a natural number n , students can sign in and choose two projects and give them either priority_1 or priority_2 , The name and the time when they sign in is tracked as well. With all of the information above assume you receive data in the from of a txt -file looking like this Martin 16:46:32 8 19 Alice 15:22:56 8 12 Alex 17:23:11 19 1 John 19:02:11 11 13 Phillip 19:03:11 11 13 Diego 15:23:57 14 5 Jack 16:46:45 8 3 where the columns represent the name , time , priority 1 and priority 2 in this order. You can assume that all of them signed in on the same day and students which signed in first have a higher priority in comparison to the others. I wanted to write a program that takes this txt -file as input and returns a txt -file with output Name Assigned Project Alice 8 Diego 14 Martin 19 Jack 3 Alex 1 John 11 Phillip 13 The solution I