Question: Please explain and comment on the code Write a program that prompts the user for a file name, reads in the file of words and
Please explain and comment on the code
Write a program that prompts the user for a file name, reads in the file of words and prints them to the screen. At the end the program should output how many words it read from the file. input.txt The file input.txt has the following words: There were 733 words in the file. Write a program that prompts the user for their full name, then tells them how long each of their names is. It should allow for any number of names. This should be done with cin.get. Make sure not to count spaces. The output should look like the following with the user input in grey. Hello, what is your name? Katherine Anne Pryde Name 1 has 9 letters. Name 2 has 4 letters. Name 3 has 5 letters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
