Written questions, the questions will be published this week. You will NOT write this before but must do this during the exam time.
Programming portion, the questions will be from the quizzes and some other old exam questions. I will post them all below later this week and will select 5 questions for the final exam.
Note I am posting this early, consider this next week’s quiz but with lots of time to do it, the “expected” time to finish is at the end of next week (April 28/29).
Write your code for the quiz blog post and link your video (if you do one), then:
email the text of that review and the link to your post to Ken.
Most important: blog about your answers. Use #CourseReview as the hash tag.
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
The programming is key to this course but is only part. This is part of why I changed to a self-grading system but I felt applying the programming exam was important.
We will do this again on the final exam for sure and I hope to do this before the end of the semester at least once. You can simulate these exam conditions for yourself in preparation.
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.
In class during exam time, we have a “normal” style exam using my exam system (see dates below).
Like last partial, explain the concepts and calculate and submit your suggestion for your grade, this at the start of your exam and MUST BE HAND WRITTEN.
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.
Details
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.