My code needs to print certain results to a file if the user types something, and if they type nothing just print it to the screen. I wrote the code, and am including it below, but once my program...