Scilab is a great tool that I believe you will find very useful during the rest of your degree programs and beyond. The motivation here is simply to introduce you to the tool. Scilab is open source software and runs on Linux, Mac and Windows
You can find the download links over here. Mac users, make sure to use the one for 10.10 (Yosemite) or 10.11 (El Capitan) unless you have an old version of Mac OS. http://www.scilab.org/download/latest
As discussed in class, I expect students to find me in my office to discuss their individual progress. This is an important habit to have during your degree program and afterward. Make an appointment at https://kenbauer.youcanbook.me/
No Class for a one or two sessions
I will be travelling from Wednesday April 13 to Monday April 18 so no class on the 14th, 15th and 18th. I will assign extra activities to account for that missed time. Your focus now should be finishing your project (for the C++ students) and becoming Python/C++ ninjas.
Create a program 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.
You will need to open a file and read the text line by line. This is straight forward in Python since you can treat the file as a list of lines (strings) and iterate over that using a for loop. Check the section “Looping over a file object” in this link for an idea but your book also has this information (or on Lynda.com) http://www.pythonforbeginners.com/files/reading-and-writing-files-in-python
For C++ this is similar in solution as for the Python group, this link may help you but feel free to find others: http://www.cplusplus.com/doc/tutorial/files/ Also remember to check the videos you have access to on Lynda.com
What to Submit
As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag #WSQ12 on your post so our blog hub picks that up.
You should include your code as a link to GitHub. You really should start using your GitHub repository now. If you need help on that, just ask Ken or your classmates.
If you have not seen my video yet about the GUI tutorial for GitHub, go check that out: http://youtu.be/YQmlksGFZWY
And of course, leave any questions here as well as asking those questions on Twitter with the hashtag #TC101 so we all see your question posted there.