Question: Please write the code in c++ and you MUST show your output in terminal or in ubuntu linux line. Show how you compiled and ran

Please write the code in c++ and you MUST show your output in terminal or in ubuntu linux line. Show how you compiled and ran the given sample output file.

Please write the code in c++ and you MUST show your outputin terminal or in ubuntu linux line. Show how you compiled and

Given a text file, the program execution outputs the lines that contain a target word. Your implementation should be not case sensitive (that is your program ignores the difference between upper-cased and lower-cased letters.). For example, given a line "Hello World!" and assuming the target word is "world", then this line should be output; if a line is "Hello worlds", then the line should NOT be output. More examples: "This a worlds;" -- No "Hello, my World!" -- Yes "wORld and WorLDs" -- Yes "This sentence is meaningless" -- No "Hello, myWorlD" -- No "This sentence is also meaningless" -- No "worlds and world" -- Yes "This is the last meaningless sentence." -- No Try your best to take any corner case into consideration. A text file is uploaded as a test case. If your program can handle this file, it fulfils the requirements. Your program accepts two command-line parameters. The first parameter is the filename of the local text file that you want to read. The second one is the target word that you want to search

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!