please do it by yourself and don't use works that you used before!!!
Copyright © 2017, 2018 Sinclair Community College. All Rights Reserved.
06. Sixth Assignment – Creating Lists
Currently in our Facebook application, the first option in the driver program lists the
users in some arbitrary order. In this assignment you will split that into two options – one
to list users alphabetically by username and the other to list them based on the number
of friends they have (from most to least). When you list users alphabetically, list them
from smallest to largest and ignore capitalization. For example, Alice should come
before Bob who should come before Charlie. In addition, the Recommend friends
options currently lists the recommendations in an arbitrary order. Change this so that
the recommendations are listed according to the number of friends each person already
has, from most to least.
The menu displayed to the user will now look like the one below, and you will be
implementing options 1 and 2 and tweaking the implementation of option 9. (The code
for the rest of the options will stay the same as it was for previous assignments.)
Menu
1. List users alphabetically
2. List users by number of friends
3. Add a user
4. Delete a user
5. Get password hint
6. Add a friend
7. Remove a friend
8. List friends
9. Recommend friends
10. Quit
There are several ways to accomplish the assignment, and you are free to use
whichever approach you feel most comfortable with. If you’re at a loss for ideas,
consider that the Collections class has a sort method that will take any List and a
Comparator and sort the objects accordingly. This is described in chapter 22 of your
textbook. Comparators are also discussed in the video for this topic.
You will be graded according to the following rubric (each item is worth one point):
The driver menu contains the two new options
The program will list users based on their username
The username listing is lexicographic order, from smallest to largest
The username listing is case insensitive
The program will list users based on the number of friends they have
The listing based on number of friends is ordered from most to least
Friend recommendations are listed in order of the number of friends each person
already has, from most to least
Copyright © 2017, 2018 Sinclair Community College. All Rights Reserved.
The program compiles
The program runs
The program is clearly written and uses standard coding conventions
Note: If your program does not compile, you will receive a score of 0 on the entire assignment
Note: If you program compiles but does not run, you will receive a score of 0 on the entire assignment
Note: If your Eclipse project is not exported and uploaded to the eLearn drop box correctly, you will receive a score of 0 on the entire assignment
Note: If you do not submit code that solves the problem for this particular assignment, you will not receive any points for the program’s compiling, the program’s running, or following standard coding conventions.