You have to write down separate program for each questions by using functions in C++ programming language and then testing them and also provide screen shot of the results when you test the program.
I have also attached a duplicate file of same questions in which first one is already answered just to show you what i need and you can take first as an example for writing and testing further programs.