Details of this Paper

do a comparison between the words from

Description

solution


Question

These are the requirements -;Read in the text file "text1.txt".;Read in the text file "banned.txt;Do a comparison between the words from "banned.txt" and the words from "text1.txt". Hint: it will be easiest to read the banned words from the file into an array. You can then read the words from the "text1.txt" and compare them with the words in the array.;At the end of the comparison write a short report to screen stating how many instances of the banned word you found, e.g.;dog" found 0 times;cat" found 3 times;it is quite simple and I would like to keep it simple using simple arrays. please dont use maps and vectors. Just need to read the banned words from the banned.txt and then compare them to text1.txt and output the amount of times each of those words occur. Also only need to find whole words of the banned words

 

Paper#69039 | Written in 18-Jul-2015

Price : $27
SiteLock