Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Writing a program in C programming language. You should write a program that reads the book you have downloaded and finds palindromes: Your program will
Writing a program in C programming language.
You should write a program that reads the book you have downloaded and finds palindromes: Your program will search for the text file to find the palindromes. A palindrome is a word or phrase such that has the same character order in either forward or reverse direction (1.e., level, dewed etc.) Your program should also determine the occurrence of these palindromes inside the text. In addition, your program should request two words from the user and should delete these two words and palindromes from the text file and save it as a new text file. Your program will determine the occurrence of these two requested words. For example, the content of the new text file will be First requested word is king, and it occurred 100 times in the text. Second requested word is queen, and it occurred 256 times in the text. One of the palindromes is level, and it occurred 556 times in the text. One of the palindromes is dewed, and it occurred 188 times in the text. This part of the text file will include the new text with deleted palindromes and requested words. You are not allowed to use string.h library. You should allocate memory dynamically. All operations should not be done in the main() function. You must use at least one more function besides main()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