Question: WRITE THE FOLLWING PROGRAM IN C (NOT C++ OR JAVA) Amendments Instead of reading several lines of text, just hard-code the following text in the

 WRITE THE FOLLWING PROGRAM IN C (NOT C++ OR JAVA) Amendments

WRITE THE FOLLWING PROGRAM IN C (NOT C++ OR JAVA)

Amendments

Instead of reading several lines of text, just hard-code the following text in the program

myString= The quick Brown Fox jumps over the Lazy Dog and the !##! LAZY DOG is still sleeping.

Use a very small set of text to test/debug your program first.

The program should make use of a function that converts the text to lower case and then perform the analysis in the main function. Ignore any numbers, symbols or special characters, etc in the text if any.

Instead of the three methods outlined in the original question, complete only part a and part b. Assume maximum length is 10 for part b.

Output

Original text: The quick Brown Fox jumps over the Lazy Dog and the !##! LAZY DOG is still sleeping

Modified text: the quick brown fox jumps over the lazy dog and the lazy dog is still sleeping

Letter Count

a 2

b 1

Word length Occurrences

1 0

2 1

8.3 (Text Analysis) The availability of computers with string-manipulation capabilities has re sulted in some rather interesting approaches to analyzing the writings of great authors. Much atten- tion has been focused on whether William Shakespeare ever lived. Some scholars find substantial evidence that Christopher Marlowe actually penned the masterpieces attributed to Shakespeare. Re- searchers have used computers to find similaritics in the writings of these two authors. This exercise examines three methods for analyzing texts with a compurt a) Write a program that reads several lines of text and prints a table indicating the number of occurrences of each letter of the alphabet in the text. For example, the phrase To be, or not to be: that is the question: contains one a," two) b's," no c's," and so on. Write a program that reads several lines of text and prints a table indicating the number' of one-letter words, two-letter words, three-letter words, and so on, appearing in thoe text. For example, the phrase b) Whether'tis nobler in the mind to suffer contains Word lengthOccurrences 2 2 (including tis)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!