Introduction In this assignment, you will write a club recommendation system for a social network. Based on the scoring system described below, your program will recommend clubs that a person may wish to join. This handout explains the problem you are to solve, and the tasks you need to complete for the assignment. Please read it carefully. Goals of this Assignment Write function bodies using dictionaries and file reading. Write code to mutate lists and dictionaries. Use top down design to break a problem down into subtasks and implement helper functions to complete those tasks. Write tests to check whether a function is correct. Files to Download Please download the Assignment 3 files and extract the zip archive. Starter code: club_functions.py This file contains the headers for the functions you will need to write for this assignment, and a few completed function docstrings. You will start development here, using the Function Design Recipe process to implement each required function. The functions in this file can call each other, and several of them will also be called by the main program ( club_finder.py ). You can, and should, write some helper functions in this file that are called by your required functions. test_get_average_club_count.py and test_get_last_to_first.py We are providing the beginning of two unit test files, test_get_average_club_count.py and test_get_last_to_first.py . These files will contain your unit tests for the get_average_club_count and get_last_to_first functions, respectively, that are described below. Data: profiles.txt The profiles.txt file contains social network data. This is sample data, and you should not modify this file. You may want to create your own data files to supplement this file for testing. See the next section for instructions on how to interpret this data. Main Program: club_finder.py The file contains a program that loads some data and then calls some functions that you will implement in club_functions.py . You do not need to modify this file. After you have implemented all of your club_functions.py functions, you can run this program to interactively test your code using different profiles. Checker: a3_checker.py We have provided a checker program that you should use to check your code. See below for more information about a3_checker.py .
Get Free Quote!
352 Experts Online