Subject Computer Science App Development


1. There should be a txt file contain a list of words (more than 10). Every word has properties: word number, word, explanation, word points(0 to 5).

2. The app will read characters from the file, then pass those characters to generate flash card quiz. (Can use JSON to handle the data structure).

3. During the quiz, The first side will show explanation, word number of the word, then user click the card and flip it.

4. After flip the card, app should display 3 cards which will trick the user. 1 card holds the right answer, another 2 will trick user with very close answer.

5. If user choose right answer, that will add 1 point to certain word in the list file and display message correct to user.
   If user choose wrong answer, then get 0 points and display you are wrong message to user.
6. After quiz finish, it should display result of the quiz (ex:correct rate, wrong words).

7. The way to choose a card: If every word hold same number of points, choose them randomly. If not, choose word that has lowest point first to generate card.

8. We need one button to trigger displaying the word list and give user option to delete words. When word is deleted, the order of other words may change. It should be like:

1. dog       after delete apple    1. dog
2. cat                                           2. cate
3. apple                                       3. banana
4. banana                                    4. lol
5. lol                                              ...

9. No need to design any UI. Just keep functions working.

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

public class AnswerActivity extends AppCompatActivity {

    private TextView txtExp;

    private Button btnSubmit;
    private String mId;

    private String selectedId;

    protected void onCreate(Bundle savedInstanceState) {


       View recyclerView = findViewById(;
//       assert recyclerView != null;

       Intent intent = getIntent();

       String exp = intent.getStringExtra("explanation");
       mId = intent.getStringExtra("answer_id");
       String answer_word = intent.getStringExtra("answer_word");

       String opt1 = intent.getStringExtra("option1");
       String idOpt1 = intent.getStringExtra("option1_id");

       String opt2 = intent.getStringExtra("option2");
       String idOpt2 = intent.getStringExtra("option2_id");

       WordItem wordItem1 = new WordItem(idOpt1, opt1, "");
       WordItem wordItem2 = new WordItem(idOpt2, opt2, "");
       WordItem wordItem3 = new WordItem(mId, answer_word, exp);

       List<WordItem> words = new ArrayList<>();

       Random random = new Random();

       WordItem[] wordItems = new WordItem[3];

       int index = random.nextInt(3);

       wordItems[index] = wordItem1;
       int index2 = index;
       while (index2 == index){
            index2 = random.nextInt(3);
       wordItems[index2] = wordItem2;
       int index3 = index2;
       while (index3 == index2 || index3 == index){
            index3 = random.nextInt(3);
       wordItems[index3] = wordItem3;

       words = Arrays.asList(wordItems);...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Assisting Tutor
Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats