Operating Systems Simulation In C++ Help!

I’m supposed to read an input .txt file that contains the processes and instructions that I have to simulate. I know how to read the input file using a Linux terminal, as per one of the requirements.

But after I read my input file, I don’t know what the best way to store the processes, create a process table, and how to sort my processes and instructions so that they execute chronologically!

attached is everything you need to understand the assignment, as well as what the input an output should look like.