you have to write a code for both questions attached in C++. You have to complete the following programs by writing all functions. DON’T MAKE ANY CHANGES IN THE MAIN please make sure there are...