Core Scheduling UNIX

I need to be able to run it in UBUNTU or some other LINUX OS environment. There are five files attached. one is the assignment. one is what should be the output. one is the input. It should be able to work for other input files, this one is just a sample though. one file is a possible solution using arrays. one file contains notes I took. One file contains a PPT with information on how the assignment is supposed to be done.

c or c++ is required. other programming languages can’t be used