Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Writing a program in C programing language (The following rules should be observed.) It must be in C language. Not C++ or others. It has
Writing a program in C programing language (The following rules should be observed.) It must be in C language. Not C++ or others. It has to be in only C programing language. You should write a program that reads the book you have downloaded. Program will find the 10 most occurred lower-case letter in the text and will convert these letters to uppercase. In addition, your program will request 2 words from the user. Program will check if these two words appear sequentially throughout the text. It should find how many times these two words appear sequentially and delete these words from the text. At the end, program will save the new text into separate text file. The content of it should look like this: Entered words are: I am They appear 543 times throughout the text sequentially. Character y occurred 25551 times Character o occurred 22051 times Character u occurred 20336 times Character c occurred 15134 times Character b occurred 12357 times Character d occurred 11392 times Character g occurred 7582 times Character z occurred 5705 times Character t occurred 2705 times Character x occurred 1705 times This part of the text file will include the new text with converted letters and deleted entered 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(). A book is mentioned in the homework. You can use any long text entry instead of this book. The important thing here is that the program can read a 'text' file under given conditions. Thanks in advance
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