Question: C - String and String Class * * * * * * * NOTE: Copy and Paste the program below in your source file and
CString and String Class NOTE: Copy and Paste the program below in your source file and you are required to add codes if necessary. You cannot OMIT given codes andor function No modification should be done in the given codes main function and function prototypes Otherwise, you will get deductions from your laboratory exercise. Please be guided accordingly. PALINDROME is a word, phrase, number, or other sequence of characters which reads the same backward or forward. ANAGRAM is a word or a phrase made by transposing the letters of another word or phrase; for example, "parliament" is an anagram of "partial men," and "software" is an anagram of "swear oft." Write a program that figures out whether one string is an anagram of another string. The program should ignore white space and punctuation. #include #include #include #include #include using namespace std; #include #include string sortstring str;reaaranging the orders of string to test if its anagram bool areAnagramsstring strstring str;process the strgin if anagram anf returns the value or string RemSpacePunctstring str;function that removes space and punctation in aa string void palindromechar sal;testing whether the cstring value is palindrome or not void password;asking the user to enter the password char menu;displaying choices ab and c then returns the answer void quit;asking the user if heshe wants to quit string EnterPassword;processing if the password is correct and diplaying it with sign int main char let,ans; add code here switchansadd code here do return ; end main coutDo you want to try again ynlet; lettolowerlet; whileletn&&let!y; add code here systempause; void quitadd code here string EnterPasswordadd code here return password; char menuadd code here return choice; void passwordadd code here string sortstring stradd code here bool areAnagramsstring strstring stradd code here string RemSpacePunctstring stradd code here void palindromechar saladd code here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
