The task is to separate the program into 2 .cpp files (main function and my own function) and 1 .h file.
Here is the main() function:
#include