Get Solutions for: A program that prompts the user to enter a filename. The program reads all the full names in the…

PFA1. A program that prompts the user to enter a filename. The program reads all the full names in the file then prints a list of rearranged full names. Each full name in the text file is arranged in this order :a surname, a comma then a first name. The full name in the output is arranged in this order: a first name, a space then a surname.