Question: GHP 5 ( due 4 / 1 2 ) - Note ExtensionHide Assignment InformationInstructionsSTL template classes must be used for this assignment.Basic Assignment ( maximum

GHP 5(due 4/12)- Note ExtensionHide Assignment InformationInstructionsSTL template classes must be used for this assignment.Basic Assignment (maximum 50 points)Query the user for a word. Use stack and queue operations to determine and report whether or not the word is a palindrome, irrespective of case. Thus both Mom and mom are palindromes.Alternate Assignment (maximum 60 points)1. Modify the basic assignment so it queries the user for the name of a file containing one word per line.Open that file, process each word using basic stack and queue operations to determine if it is a palindrome, and if so, print it.At the end report the total number of palindromes found and the total number of words processed.Also keep track of the number of palindromes containing the letter p (irrespective of case), and the length of each palindrome containing a p.At the end display the number of these palindromes containing a p and all of them sharing the longest length. Thus, if the longest palindrome containing a p is seven characters long, all seven character palindromes containing a p must be displayed.When the assignment is posted on Brightspace a dictionary file will also be posted Your program should correctly report the total number of words in the file. For the purpose of this assignment ignore case, so Paap would be a palindrome. A word consisting of a single character (for example, I or a) is a palindrome.Due on Apr 12,202411:59 PMAttachmentsdict.txt (948.81 KB)
In c++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!