IUP Computer Science
CO 310 Fall 1984
Assignment #1
(Due 21 September 1984)
Write a PASCAL program to read a saying from the terminal
and determine whether or not the saying is a palindrome. The
saying that is typed should be in all uppercase or all lowercase
letters, with no punctuation of any kind. The saying may be up
to 40 characters long.
A palindrome is a word or saying that reads the same
forwards and backwards (after perhaps regrouping the letters).
Here are some examples of palindromes:
RADAR
MADAM IM ADAM
NAME NO ONE MAN
ABLE WAS I ERE I SAW ELBA
Your program should be run on at least five sayings, some of
which are palindromes and others which are not. After reading in
a saying, the program should display a message that reports
whether or not the saying is a palindrome. You may choose
whatever type of loop you want for the program, as long as it can
process at least five sayings and has a definite termination.
Suggested report form for a saying:
NAME NO ONE MAN is a palindrome
or
JUST SOMETHING OR OTHER is not a palindrome
See "Program Documentation Requirements" for other restrictions.