CS110: Fall 2021

Intro to Computer Programming with Python

CS110: Fall 2021

Assignments > HW6: Getting Started on P2

Due on Fri, 12/03 @ 11:59PM. 8 Points.

In this assignment, you will be completing 20 points of your Project 2, to get a solid start. Your grade will be calculated by dividing your total score (20 possible points) by 2.5 (so that it scales to 8 possible points).

Option 1: Yelp

Please complete Parts 1-3 of Project 2, which involves asking the user for their (1) restaurant category and (2) sort preferences, and then (3) displaying any matching restaurants to the screen (with an optional keyword filter).

Ultimately, your program will allow your user to browse through matching restaurants, and email a restaurant selection to a friend, but that’s not required for HW6.

You will be graded as follows…

Category Selection (8 Points)

2 Points Displays the user’s selected categories(s) if any
2 Points Displays the available Yelp categories from which to choose
2 Points Allows user to select among categories
2 Points Allows user to clear out selected categories and start over

Ordering / Sorting Criteria (4 Points)

1 Point Displays the user’s current sort preference
1 Point Displays possible sorting criteria
2 Points Allows user to specify their preferred ordering criteria (best_match, rating, review_count, distance)

Previewing matching restaurants (8 Points)

2 Points Allows the user to specify a search keyword
3 Points Results honor user’s selected location, categories, and sorting criteria
3 Points Prints restaurants to the screen in some coherent format (consider using a pandas dataframe for this).

Option 2: Spotify

Please complete Part 1 & 2 of Project 2, which involves asking the user for their genre and artist preferences.

Ultimately this information will be used to seed the Spotify recommendation service, but actually getting song recommendations is not necessary for HW6.

You will be graded as follows…

Genre Selection (8 Points)

2 Points Displays the user’s selected genre(s) if any
2 Points Displays available genres
2 Points Allows user to select among genres presented
2 Points Allows user to clear out their selected genres and start over

Artist Selection (12 Points)

3 Points Displays the names of the user’s selected artist(s) if any
3 Points Allows user to search for artist
3 Points Allows user to select among artists returned from Spotify
3 Points Allows user to clear out selected artists and start over

What to Turn In