INFX 598 Assignments
Assignment 1
Due: Monday, Jan. 9
Write 4 short Python programs.
These will only be a few lines each.
- Calculate and print 13! (13 factorial)
- Output “Happy New Year!” using 3 different string constants.
- Write three procedures that each print out one of Happy, New, and Year!
- Write a procedure that uses the procedures above to print Happy New Year! (Can you make it appear on one line instead of three?)
Submit a sample run of your code for each program. Similar to what we have seen in class.
Assignment 2
Due: Wednesday, Jan. 11
Write 2 short Python programs.
- Write a procedure that accepts one parameter (“count”) and generates a list of count random integers, between 0 and 1000, puts those integers into a list, and returns the list.
- Write a procedure that takes four parameters (lastname, firstname, score, grade) and returns a new dictionary item with those four items as name/value pairs.
Submit a sample run of your code for each program. Similar to what we have seen in class.
Assignment 3
Due: Wednesday, Jan. 18
Write 2 short Python programs.
- Write a short program that reads input lines from standard input and writes the line to a file, prepending a three digit line number and a colon. If the user enters two blank lines, stop writing lines, and close the file.
- Subclass the “Person” object to create a “Faculty” object type. Faculty should have a field called “rank” which can be one of “lecturer”, “assistant”, “associate” or “full” and a boolean value for whether the faculty member is tenured or not. Modify __repr__ to do the right thing and create set/get methods for Faculty specific fields.
Submit a sample run of your code for each program. Similar to what we have seen in class.
Assignment 4 (with your project team)
Due: Wednesday, Jan. 25 (new due date)
Server Setup
Follow instructions in Server Setup Guide
Submit PDF or text file showing that Python on your server loads modules correctly.
Assignment 5
Due: Wednesday, Feb 1 (new due date)
Initial Twitter Analysis
Re-run the sample analysis from Chapter 1 of Russell, but
pick a different topic to trace through retweets. For
example, instead of watching for retweets of “Justin
Bieber”, you could track the winner of the Iowa
caucus (Jan 3), the New Hampshire primary (Jan 10), or
something from the People’s Choice awards (Jan 11).
You could pick something else too, but make sure it is
likely to have some tweets and re-tweets.
Submit a graph showing your result.
Assignment 6
Due: Wednesday Feb. 8 (new due date)
Perform a basic analysis of Wikipedia Articles. This is not actually a “team” assignment. However, to make this efficient, it is probably easiest if you work with your team to complete steps 1 through 4 of this assignment. But you should individually do step 5.
- Install build Wikipedia Analysis tools following the dev setup guide (with your project team)
- Download the Article subset (with your project team)
- Index the Article subset (with your project team)
- Parse comments for reverts (with your project team)
- Analyze and generate graphs (individually)
* What is the revert distribution by page?
* Are some users more likely to revert?
* What are some other questions that we might answer with comment data?
Submit your individual answers (step 5), they might be graphs with explanations.
Assignment 7 (with your project team)
Due: Monday, Feb. 13
Write a proposal for either analyzing twitter data or one of the available Wikipedia subsets. Your proposal should describe:
- The high-level question you want to answer
* Why is this an interesting question?
* Who would care about answering this question?The data
* What are you collecting?
* What features need to be extracted? - The analysis
* How will this data be analyzed? Will you use descriptive statistics, correlation, regression?
* How are the features used? - The presentation
* How will the results be presented?
Submit your written proposal.