Homework_in_C_or_C++

I have a homework due in a day (24 hours). It should be done on a Unix-like machine in C or C++ using MPI library (MPICH version is available on the internet). The desciption is provided in the attached file.