Lab 9 Solution

$30.00 $24.00

Description: a Palindrome is defined as a word, phrase, number, or other sequence of characters which reads the same backward as forward. For this lab, you will write 2 definitions for a Boolean function called palCheck, which returns true if the argument is a palindrome, and false if it is not. One definition will have…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Categorys:
Tags:

Description

5/5 – (2 votes)

Description: a Palindrome is defined as a word, phrase, number, or other sequence of characters which reads the same backward as forward. For this lab, you will write 2 definitions for a Boolean function called palCheck, which returns true if the argument is a palindrome, and false if it is not.

  • One definition will have a string as an argument, and the other will have an integer
  • The definition for both versions will be recursive (see page 533 for help with the integer)
    • The definition for the string version is easy if you remember you can go through a string just as you do an array

i.e. str[0], str[1], etc…

  • Your program will ask the user for input, and display the results on the screen (true or false)

Send me the .cpp file

Lab 9 Solution
$30.00 $24.00