COP 3337 Section U05 Spring 2017 HOMEWORK # 4 ============ Due: Wednesday, March 22nd, 2017 Write a program that prompts the user to enter the name of an input text file using the JOptionPane as input. If the file cannot be open, the program prints an error message and prompts the user to enter the name of another file. If this name is wrong again it gives him/her a last chance to enter a correct file name. After 3 failed tries the program prints an error message on the monitor and exits. If the program was able to open the input file, it prompts the user through the JOPtionPane to enter the name of the output file. Again it gives him/her 3 chances to get it right. After 3 failed file names, the program prints an error message, closes the input file file and exits. Otherwise the program processes every line of the input file as follows. If the input line has two strings like Pepe Garcia the program writes the line P. Garcia on the output page. If the input line does not have 2 words ( it may be 0, 1, 3, or more) the program prints the contents of the line on the System.out file and states that this file does not have the format word1 word2.