(Solved) : Pdf Problem Write C Program Performs Following Tasks 1 Prompts User Enter String S Search Q33299664 . . .
pdf Problem Write a C program that performs the following tasks 1) It prompts the user to enter a string S to search for, for example “microprocessor. 2) It then proceeds by reading the module catalogue stored in the file modules.txt, where each line contains a description of one module. Here is a short fragment from the file EEE!008 C Programming EEE1009 Communication Skills and Innovation EEE1010 Electronics I for Electronics and Computer Eng EEE2007 Computer Systems and Microprocessors Download the file here: https://www.staff.nclac.uk/andrey.mokhov/EEE1008/modules.txt 3) For every line in the file, the program checks whether it contains the search string S. If yes it prints out this line. For example, the line corresponding to the EEE2007 module (see above) contains the string “microprocessor” and should be printed. Note: string matching should be case-insensitive, ie. “Microprocessors” contains the search string “microprocessor 4) When all lines have been processed, the program prints the number of found matches See examples below for a clarification. Note: you do not have to follow exactly the same input and output format as shown in the examples. You are also encouraged to experiment by adding other useful features for manipulating the information proviced in the module catalogue Examples Enter a search string: microprocessor EEE2007 Computer Systems and Microprocessors EEE2206 Computer Systems and Microprocessors EEE3010 Microprocessor Control EEE8022 Microprocessor Systems Number of matches: 4 Enter a search string: circuits Number of matches: Show transcribed image text
Expert Answer
Answer to Pdf Problem Write C Program Performs Following Tasks 1 Prompts User Enter String S Search Q33299664 . . .
OR