Provided option to allow user to choose how to display results. when the output is going to print the results, it will prompt user for his choice: 0 - print to terminal, 1 -  write to results.txt