CS245 - CS II SPRING 1997 LAB 4

Due by the end of lab (Feb. 11, 1997):

A Palindrome is a string of characters that is the same forwards and backwards. One of the easiest ways to test if a string is a palindrome is to reverse the string and then compare the original string with the reversed string. You may use lab3 and any functions from to assist you in writing this program.

Write a program that

  1. reads in a string of arbitrary length (less than 20 characters),
  2. write out the string,
  3. determines whether the string is a palindrome or not and displays an approopriate mesage
Be sure to include prompts for the user and a descriptive heading for the output.