Course Solutions Uncategorized (Solved) : Part 1 50 Marks Goal Develop Program Used Perform Keyword Searches Text Files Local Direct Q27719678 . . . .

(Solved) : Part 1 50 Marks Goal Develop Program Used Perform Keyword Searches Text Files Local Direct Q27719678 . . . .

 

Part 1 [50 marks]

Your goal is to develop a program that can be used to performkeyword searches in a text files in the local directory. Say youyour local directory contains the following files (text files withextension .txt)

$ ls…dog.jpgfile1.txtfile2.txtpride and prejudice.txtgilgamesh.txtemma by jane austin.txt

When we run your program as follows

$ ./search <keyword-1> <keyword-2> <keyword-3>

The program will produce the following output

keyword-1: Found in “file1.txt” at line 3 Found in “file2.txt” at line 4 Found in “gilgamesh.txt” at line 3 (2 times)keyword-2: Not foundkeyword-3: Found in “emma by

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 2 40 Points Edge Crack Located Middle Point Bottom Part Beam Loaded Two Fluctuating Forces Q33299010 . . . .(Solved) : 2 40 Points Edge Crack Located Middle Point Bottom Part Beam Loaded Two Fluctuating Forces Q33299010 . . . .

<br/><img src="https://media.cheggcdn.com/media%2F790%2F790d7367-71d3-4367-9afd-6bc85c4b51ce%2Fimage.png" alt="2.(40 points) An edge crack is located at the middle point, bottom part of a beam that is loaded with two fluctuating forces acting in phase. The force