this program should be able to
Given a file of text, assume that
a "word" is 1 or more consecutive, non-whitespace characters
a "sentence" is a series of words terminated by either a period, exclamation point, or question mark
Design a C++ program (using functions/passing parameters) that will
interactively prompt for and read the name of an input file
interactively prompt for and read a string to search for
open the input file (using an input filestream variable) and with one pass through the file
count the number of "words" in the file
for each word, make sure all letters, except the first, are lower case - leave the first character unchanged
count the number of "sentences" in the file
count the number of letters in the file (A-Z,a-z)
count the number of consonants in the file (consonants are letters that are not vowels - the vowels are: a, e, i, o, u, A, E, I, O, and U)
count the number of nonwhitespace characters in the file that are NOT letters
count the number of times the search string is found in the file (must be an exact match) - search for matches AFTER upper case letters have been coverted to lower case
this is what i have so far
#include <string>
#include <fstream>
#include <iomanip>
#include <cctype>
using namespace std;