Question: Help with this code please. A palindrome is a word or a number or a sequence of units that is able to be read the

Help with this code please.

A palindrome is a word or a number or a sequence of units that is able to be read the same way from either direction, be it forwards or backwards. Punctuation and spaces between the words or lettering is allowed. Here are some examples:

Red rum sir is murder

Step on no pets

Eva can I see bees in a cave

No lemon no melon

1. Write a program that does following string control and manipulation operations by using pointers:

a. Prompt the user to enter two strings, count number of characters in the strings, print length of the strings, print if the given strings are palindrome.

b. Use main( ) as the driver function. Allow the user to run the program as many times as desired. c. Write 6 functions that main( ) calls to accomplish the task:

1. (10 Points) getStrings( ): Prompts the user for two strings. Use pointer variables.

2. (20 Points) getLength ( ): Determines the lengths of each string. Returns length of the given string.

3. (30 Points) isPalindrome( ): Determines a given string is palindrome or not. Returns true if palindrome or returns false otherwise.

4. (10 Points) displayReverse(): Prints given string in reverse.

5. (20Points ) concat() ;displays given two strings concatenation.

6. (10 Points) displayResults( ): Prints the strings, their lengths, and states whether they are palindrome or not.

Sample I/O: Please enter first string: James

Please enter second string: Sator Arepo Tenet Opera Rotas

Length of the first string is 5

Length of the second string is 29 First string is not palindrome Second string is a palindrome.

Reverse of the first string is: semaJ

Reverse of the second string is: Sator Arepo Tenet Opera Rotas

Would you like to continue with another pair of strings (Y or N)? n

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 Databases Questions!