Question: Write a program that opens a file and counts the whitespace-separated words in that file. You may obtain the name of the input file either
Write a program that opens a file and counts the whitespace-separated words in that file. You may obtain the name of the input file either from the command line or via prompt and user input. Be sure to clearly document the method chosen.
You may test your program using any number of text files; however, you must be sure to test your program using the Sample Text File provided at the end of this assignment (excerpt.txt).
I will appreciate it if you document code changes and observations as in-line comments, and excerpts so that I will understand everything. Please write as many words explaining in detailed how you did this, preferably inline comments for everything. Thank you.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
