Homework Assignment #6
Due by 11:59 PM, Tuesday July 31, 2001

Write a C program that prompts the user to enter a string of up to 60 characters. Your program must then determine whether or not the string is a palindrome (a sentence that reads the same backward or forward) and print the results.

SAMPLE EXECUTIONS OF THE PROGRAM (The user's response appears in blue italics)

Enter a string of up to 60 characters:
A man, a plan, a canal, Panama!
Yes, the string you entered is a palindrome.

Enter a string of up to 60 characters:
Madam, I'm Adam.
Yes, the string you entered is a palindrome.

Enter a string of up to 60 characters:
This is the last homework assignment of the semester.
No, the string you entered is not a palindrome.

 

REQUIREMENTS:

Paste the source code inside an e-mail message to hm305@nyu.edu and include HW6 in the Subject Line of the e-mail message. You should also CC yourself on the e-mail message to make sure it leaves your outbox.