c program 38

Please write a c++ code and provide comments for easier understanding. Complete everything that is required in the PDF document to be submitted. the pptx is for your reference. I can provide a video for better understanding as well.