Question: Please help me with this assignment in the C program Sample dialog for the base program Welcome to Information Retrieval written by Mike Lee For

Sample dialog for the base program Welcome to Information Retrieval written by Mike Lee For more information contact me at mi95@csu.fullerton.edu This program will help you find words in a file of text. Please enter the name of a text file: main lesson.txt Thank you. Here are the contents of the file: The only way to learn a new programming language is by writing programs in it. The first program to write is the same for all languages: Print the words Hello, world This is the big hurdle. The file main lesson has been copied to an array in memory. The array will now be displayed for your confirmation The only way to learn a new programming language is by writing programs in it. The first program to write is the same for all languages: Print the words Hello, world This is the big hurdle. The number of white space characters in the fle is 37. The number of printable characters in the file is 122 . Is that ok (y or n) ? y Thank you. Have a great day. Footnote: If the user answers ' n ' for the last question then the program responds: Please check the algorithm of this program and try again. Bye. The numbers shown in the dialogue for white space and printable are not accurate. Your results will be different. The challenge part As an example suppose the text file is 'flying cow.be' and that file contains the following: The big brown cow jumped slowly over the lazy blue moon amazing all the cows in the bam. Here is the dialog Welcome to Information Retrieval written by Mike Lee For more information contact me at m195@csu.fullerton.edu This program will help you find words in a file of text. Please enter the name of a text file: flying cow.bt Thank you. Here are the contents of the file: The big brown cow jumped slowly over the lazy blue moon amazing all the cows in the barn. The file main lesson has been copied to an array in memory. The array will now be displayed for your confirmation The big brown cow jumped slowly over the lazy blue moon amazing all the cows in the barn. The number of white space characters in the fle is 12. The number of printable characters in the file is 89. Is that ok (y or n)?y Please enter a search string: cow That string is found in position number(s) 1471 Have a great day. Bye. Footnote: If the search string is not found in the file then the output message should be "The string is not in the file.". Information will be presented in lectures about the library functions needed to do this program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
