computer Science C++

I need help in C++ code. I have all the code but it needs some modifications.