Question: Write a C++ program that will read a file of student names. Your program should find the file in the current directory of your
Write a C++ program that will read a file of student names. Your program should find the file in the current directory of your project. The file name should be students.txt. Your program should open the file, read all the names and determine the following: the total count of names in the file - how many names are the same length SAMPLE OUTPUT: The file contains 25 names 5 names were 3 characters long 8 names were 4 characters long 3 names were 5 characters long etc. Jackie Sam Bill Tom Mary Paul Zev Barb John Sharon Dana Dominic Steven Padro Katey Kathy Darius Angela Mimi Jesse Kenny Lynn Hector Brittany Jenn Joe Chloe Geena Sylvia Dean
Step by Step Solution
3.40 Rating (153 Votes )
There are 3 Steps involved in it
Heres a C program that reads a file named studentstxt in the current directory counts the ... View full answer
Get step-by-step solutions from verified subject matter experts
