Question
A palindrome is a word or phrase that reads the same backwards and forwards, ignoring punctuation, spaces, and anything that isnt a letter. Examples of
A palindrome is a word or phrase that reads the same backwards and forwards, ignoring punctuation, spaces, and anything that isnt a letter.
Examples of Palindromes
Madam, Im Adam.
Kayak
Racecar
A man, a plan, a canal Panama!
Able was I, ere I saw Elba.
Go hang a salami, Im a lasagna hog.
Write a program that does the following:
1.opens a text file named Proj3input.txt containing multiple lines of text (1 or more)
2.for each line read from the text input file, print out Palindrome: followed by the line of text if itIS a palindrome, and print out Not a palindrome: followed by the line of text if it is NOT a palindrome.
while executing the program, create a file Palindrome Results.txt and mirror all your printouts to the screen into that file also.
This is for C
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started