WSQ12, thanks Internet.

keep-calm-try-again

Helloooooo, I’m here to write about the last WSQ of the partial, and yeah, It gave me big troubles. Actually, I can’t make it work, but I got the logic and the explanation of what it has to do, so I still working on it. I search on the Internet and I saw some blogposts and other pages to get the result but it didn’t work.

The WSQ12 consists in make a program create that asks the user for a word which will be your search word and the name of a file to open and search for that word. Then create a function that will receive two parameters (both string) representing those two data points. This function returns the number of occurrences of that word in that file.

Well, I think that maybe I got the wrong libraries or something in my code is wrong but, this is what I have.

wsq12

 

Check the code and help me to fix it😀

https://github.com/eduardomrlsg/TC101/blob/master/WSQ12%20WordCount

Regards, EdMo.

CC BY-SA 4.0 WSQ12, thanks Internet. by eduardomoralesg is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.