linuxserver1[101] a.out You must enter the name of the data file on the command line to run this program Usage: a.out filename linuxserver1[102] a.out stings.dat Your greeting goes here - includes definition of a palindrome and explanation of how to use the program. Couldn't open stings.dat linuxserver1[103] a.out strings.dat Your greeting goes here - includes definition of a palindrome and explanation of how to use the program. The strings are : 1 - "palindromes" 2 - "String manipulation and recursion" 3 - "Otto" 4 - "Command-line arguments" 5 - "Anna" 6 - "file handling and dynamic memory allocation" 7 - "Able was I ere I saw Elba" 8 - "ctype.h" 9 - "Madam, I'm Adam." 10 - "Use of menus: Integer vs. Character input" 11 - "Array of strings?" 12 - "Looking for EOF?" 13 - "Was it a cat I saw?" 14 - "A man, a plan, a cat, a canal: Panama?" 0 - Enter 0 to end the program Enter choice : 3 Analysis of the string : "Otto" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : p "Otto" is a palindrome Analysis of the string : "Otto" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : v There are 2 vowels in "Otto" Analysis of the string : "Otto" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : c There are 2 consonants in "Otto" Analysis of the string : "Otto" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : l The length of "Otto" is 4 Analysis of the string : "Otto" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : w "Otto" consists of 1 word(s). Analysis of the string : "Otto" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : q The strings are : 1 - "palindromes" 2 - "String manipulation and recursion" 3 - "Otto" 4 - "Command-line arguments" 5 - "Anna" 6 - "file handling and dynamic memory allocation" 7 - "Able was I ere I saw Elba" 8 - "ctype.h" 9 - "Madam, I'm Adam." 10 - "Use of menus: Integer vs. Character input" 11 - "Array of strings?" 12 - "Looking for EOF?" 13 - "Was it a cat I saw?" 14 - "A man, a plan, a cat, a canal: Panama?" 0 - Enter 0 to end the program Enter choice : 11 Analysis of the string : "Array of strings?" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : P "Array of strings?" is not a palindrome Analysis of the string : "Array of strings?" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : V There are 4 vowels in "Array of strings?" Analysis of the string : "Array of strings?" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : W "Array of strings?" consists of 3 word(s). Analysis of the string : "Array of strings?" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : R R is not a valid choice Enter choice : Q The strings are : 1 - "palindromes" 2 - "String manipulation and recursion" 3 - "Otto" 4 - "Command-line arguments" 5 - "Anna" 6 - "file handling and dynamic memory allocation" 7 - "Able was I ere I saw Elba" 8 - "ctype.h" 9 - "Madam, I'm Adam." 10 - "Use of menus: Integer vs. Character input" 11 - "Array of strings?" 12 - "Looking for EOF?" 13 - "Was it a cat I saw?" 14 - "A man, a plan, a cat, a canal: Panama?" 0 - Enter 0 to end the program Enter choice : 10 Analysis of the string : "Use of menus: Integer vs. Character input" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : W "Use of menus: Integer vs. Character input" consists of 7 word(s). Analysis of the string : "Use of menus: Integer vs. Character input" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : Q The strings are : 1 - "palindromes" 2 - "String manipulation and recursion" 3 - "Otto" 4 - "Command-line arguments" 5 - "Anna" 6 - "file handling and dynamic memory allocation" 7 - "Able was I ere I saw Elba" 8 - "ctype.h" 9 - "Madam, I'm Adam." 10 - "Use of menus: Integer vs. Character input" 11 - "Array of strings?" 12 - "Looking for EOF?" 13 - "Was it a cat I saw?" 14 - "A man, a plan, a cat, a canal: Panama?" 0 - Enter 0 to end the program Enter choice : 15 15 is not a valid choice Enter choice : -5 -5 is not a valid choice Enter choice : 13 Analysis of the string : "Was it a cat I saw?" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : P "Was it a cat I saw?" is a palindrome Analysis of the string : "Was it a cat I saw?" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : W "Was it a cat I saw?" consists of 6 word(s). Analysis of the string : "Was it a cat I saw?" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : V There are 6 vowels in "Was it a cat I saw?" Analysis of the string : "Was it a cat I saw?" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : C There are 7 consonants in "Was it a cat I saw?" Analysis of the string : "Was it a cat I saw?" P - Is this string a palindrome ? V - How many vowels ? C - How many consonants ? L - What's its length ? W - How many words ? Q - Quit Enter choice : Q The strings are : 1 - "palindromes" 2 - "String manipulation and recursion" 3 - "Otto" 4 - "Command-line arguments" 5 - "Anna" 6 - "file handling and dynamic memory allocation" 7 - "Able was I ere I saw Elba" 8 - "ctype.h" 9 - "Madam, I'm Adam." 10 - "Use of menus: Integer vs. Character input" 11 - "Array of strings?" 12 - "Looking for EOF?" 13 - "Was it a cat I saw?" 14 - "A man, a plan, a cat, a canal: Panama?" 0 - Enter 0 to end the program Enter choice : 0 Ending program linuxserver1[104]