You have a file called Names that has names as FirstNameLastName FirstName LastName. For example, Names could have BruceWillis Andrew Andrew Samwise Gamgee Duran Duran Write a programthat goes through this file and writes all the names that have thesame first and last names to a file called SameNames For example,for the file above, the program would write to the file SameNamesAndrew Andrew Duran Duran
Expert Answer
An answer will be send to you shortly. . . . .