Course Review – Instead of another Quiz

Weekly Quiz

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.

The Quiz (same for both C++/Python)

Continue reading “Course Review – Instead of another Quiz”

WSQ14 – Scilab

Background

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

Continue reading “WSQ14 – Scilab”

WSQ13 – Exam2

Programming is Only Part

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.

Continue reading “WSQ13 – Exam2”

Mondays – Week 12

The Video

Progress Meetings

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.

flickr photo by phonakins https://flickr.com/photos/phonakins/5400751786 shared under a Creative Commons (BY-NC-ND) license
flickr photo by phonakins https://flickr.com/photos/phonakins/5400751786 shared under a Creative Commons (BY-NC-ND) license

WSQ 12 – Word Count

What to Do

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.

flickr photo by wiccked https://flickr.com/photos/wiccked/57466134 shared under a Creative Commons (BY-NC-ND) license
flickr photo by wiccked https://flickr.com/photos/wiccked/57466134 shared under a Creative Commons (BY-NC-ND) license