Write a program to read the content of a file and: (1) identify how many words a
ID: 3621763 • Letter: W
Question
Write a program to read the content of a file and:(1) identify how many words are in the file.
(2) print the first and the last words within the file.
A Word is defined as a group of adjacent characters separated by one or more blank space(s) from another word. The program should ask the user for the name of the input file.
Submit a copy of your input file with program and its outputs