You will get better answers if you find a forum that specialises in C++. Not many microcontrollers can run C++ code properly.
You will also get better help if you post your answers to the first part of the question, where you have defined the UML diagrams. These feed directly into writing good code.
Hiding your question as an image is questionable though. If you don't want your professor to catch you asking for help on the internet, don't ask for help on the internet