One fish two fish Red fish blue whaleThen the function should print:
whale blue fish red fish two fish OneHere's the prototype for the function
Write a function IsPalindrome that takes a string as a parameter and returns true if and only if the string is a palindrome when all the case (lower/upper) of letters is ignored, and only letters (no numbers, no spaces, no puncutation) are considered. The function should return true, for example, for the string
A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal...Panama!Hint: first create a string (or a vector) that consists only of the letters, all converted to lowercase. Then test this new string. You may want to use isalpha and tolower from the header file <cctype> -- see pages 401 and 402 in the book.
For example, Fred Smith and Chris Jones might have information stored as shown below where Fred didn't play in the first two games and Chris played eight minutes in the first game and seven minutes in the last game.
Smith Jones Fred Chris (0,0,1,3,5,1) (8,2,5,6,4,7)
In this problem every player has the same number of entries in his/her myMinutes data field, though these entries can be zero.
Write the function IronPlayer that prints the first and last name of the player with the most minutes of playing time on a team. Assume there will be no ties, there is always one iron player. (It may be helpful to write another function called by IronPlayer).
6 Fred Smith 0 0 1 3 5 1 Chris Jones 8 2 5 6 4 7Here's the prototype: