CCCS 325 Assignment 5
Introduction
You must do this assignment individually, and you should follow all the instructions described in the
text. When you submit your file, make sure that your code compiles and runs even if you cannot
complete the program. Do Not submit a file that is not able to run and do not submit your file using .rar.
If the program is not able to run, you will lose 20 points immediately. Note that, this assignment is
worth 15% of your final grade and is out of 100 points, and no late assignment will be accepted. Finally,
please also make sure your app is able to run in landscape mode. You are free to design your own
landscape mode. You are also free to choose your own color and text style, and sort on.
Due Date
See mycourses
What to submit
Zip and submit the following project to MyCourses:
• $Yourname$_MyYelp.zip
Introduction
In this assignment, you will be asked to write an application call My Yelp. When the first time the
application is launched, you need to show a list of default restaurants (Your preference). your
application should show like below.
Search Icon Search Bar
Spinner Options
Name of Restaurant
Rating
Category Type Restaurant selected image
Phone number
Address List of restaurants
price
Scrollable
To get these restaurant data, you need to use the Yelp Fusion API.
(See link: https://www.yelp.com/developers/documentation/v3/get_started).
This is a free API, but you need to register an account to get the API key. Please read the instruction to
make sure you know how to use the API.
Part 1 Search Restaurants
The user must enter a search term (eg. “sushi”, “steak” or “bbq”) to see results.
Delete the entered text
Part 2 Sorting Results
You must be able to sort the results depends on the rating and price. For sorting based on rating, you
should sort restaurants from the highest rating to the lowest rating. For sorting based on price, you
should sort it from the cheapest (e.g. $) to the most expensive one (e.g. $$$$$). If the price data is not
available, you should place them first. This rule should also apply to the sorting based on rating.
Part 3 Add restaurants to favorite
The user is able to click on any of the restaurant and add it to favorite. When the user clicks on the
restaurant item, a notification alert should pop up to ask whether to add the selected item to favorite
(See below). When the user selects yes on the alert dialog, the item is added to favorites. You must use
the database we learned from the class to store these selected items. This means that your favorite
items will not get deleted when you restart the application.
The favorite page can be found from the navigation drawer by swiping right on your screen. Your drawer
must have a header and showing name of the application. Please check below for the application flow.
No search bar and sorting
Swipe Right