Write C Programming Code Following Question Consider Following Output Scenarios Welcome Un Q43789626
Write a C Programming Code for the following question
Consider the Following output/scenarios:
Welcome to UNM text editor. Your original textis:
Dennis MacAlistair Ritchie (September 9, 1941 – October 12, 2011) was anAmerican computer scientist. He created the C programming languageand, with long-time colleague Ken Thompson, the Unix operatingsystem and B programming language. Dennis Ritchie was born inBronxville, New York. His father was Alistair E. Ritchie, along-time Bell Labs scientist and co-author of The Design ofSwitching Circuits on switching circuit theory. As a child, Dennismoved with his family to Summit, New Jersey, where he graduatedfrom Summit High School. He graduated from Harvard University withdegrees in physics and applied mathematics.
The total number of characters (without spaces) is:531
The total number of words is: 97
Repeated words are:
Dennis -> 3times
Ritchie -> 3times
was -> 3 times
.
. There are more. Find the rest on your own and displaythem.
.
Enter the word that you want to replace:Java
This word does not exist in the text. Please try again:Dennis
The new word that you want to use instead: D.
Your new text is:
D. MacAlistair Ritchie (September 9, 1941 – October 12, 2011)was an American computer scientist. He created the C programminglanguage and, with long-time colleague Ken Thompson, the Unixoperating system and B programming language. D. Ritchie was born inBronxville, New York. His father was Alistair E. Ritchie, along-time Bell Labs scientist and co-author of The Design ofSwitching Circuits on switching circuit theory. As a child, D.moved with his family to Summit, New Jersey, where he graduatedfrom Summit High School. He graduated from Harvard University withdegrees in physics and applied mathematics.
Thanks for using UNM text editor. Goodbye.
Hint: Use Microsoft Word as a guide for your characters andwords counters.
Q2. Write a code for a basic text editor that displays information about a text and allows the user to change the words of that text. The code must satisfy the following conditions: 1. Must use strings and pointers. 2. Must display the total number of characters of the text (excluding spaces). 3. Must display the total number of words of the text (including numbers and special characters). 4. Multiple spaces between words must not affect the total number of words. 5. Must display the words that are used more than once in the text and their usage frequency. You are free if you want to consider a case-sensitive matching or not. 6. Must allow the user to change any word within the text. If the word to be changed is used more than once in the text, then all of occurrences of that word should be replaced with the new word. 7. The new text should be displayed again after replacing the word(s). 8. The program should be terminated after displaying the new text. 9. The string used in the code must use the following text (notice that there are multiple spaces after the first word, on purpose): Dennis MacAlistair Ritchie (September 9, 1941 – October 12, 2011) was an American computer scientist. He created the C programming language and, with long-time colleague Ken Thompson, the Unix operating system and B programming language. Dennis Ritchie was born in Bronxville, New York. His father was Alistair E. Ritchie, a long-time Bell Labs scientist and co-author of The Design of Switching Circuits on switching circuit theory. As a child, Dennis moved with his family to Summit, New Jersey, where he graduated from Summit High School. He graduated from Harvard University with degrees in physics and applied mathematics. Show transcribed image text Q2. Write a code for a basic text editor that displays information about a text and allows the user to change the words of that text. The code must satisfy the following conditions: 1. Must use strings and pointers. 2. Must display the total number of characters of the text (excluding spaces). 3. Must display the total number of words of the text (including numbers and special characters). 4. Multiple spaces between words must not affect the total number of words. 5. Must display the words that are used more than once in the text and their usage frequency. You are free if you want to consider a case-sensitive matching or not. 6. Must allow the user to change any word within the text. If the word to be changed is used more than once in the text, then all of occurrences of that word should be replaced with the new word. 7. The new text should be displayed again after replacing the word(s). 8. The program should be terminated after displaying the new text. 9. The string used in the code must use the following text (notice that there are multiple spaces after the first word, on purpose): Dennis MacAlistair Ritchie (September 9, 1941 – October 12, 2011) was an American computer scientist. He created the C programming language and, with long-time colleague Ken Thompson, the Unix operating system and B programming language. Dennis Ritchie was born in Bronxville, New York. His father was Alistair E. Ritchie, a long-time Bell Labs scientist and co-author of The Design of Switching Circuits on switching circuit theory. As a child, Dennis moved with his family to Summit, New Jersey, where he graduated from Summit High School. He graduated from Harvard University with degrees in physics and applied mathematics.
Expert Answer
Answer to Write a C Programming Code for the following question Consider the Following output/scenarios: Welcome to UNM text edito…
OR