Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is a Java program. Assignment 3 Flashcard Application II - Leitner System Objectives: Public Interface, Encapsulation, Unit Test, Class Implementation Note: You can work
This is a Java program.
Assignment 3 Flashcard Application II - Leitner System Objectives: Public Interface, Encapsulation, Unit Test, Class Implementation Note: You can work on this assignment individually or in a team of two. CS203 due on Oct 1 Develop a flashcard application using the Leitner system and a simple text user interface (TUI) A flashcard's challenge and response are only texts (no image or sound). The TUI should offer the following operations: Import a new set of cards. The TUI supports a command import followed by a filename. The application opens the file and for each pair of challenge and response, a new flashcard is created and stored in Box 1. When all entries have been imported, the application prints out how many flashcards have been imported Suggested syntax: import filename A suggested file format is: challenge, response, empty line. e.g I do not apeak Estonian Ma ei ragi eesti keelt Happy Birthday! Palju nne snnipaevaks! Study mode according to Leitner system. To enter the study mode, the user enters leitner In study mode, the application randomly picks a flashcard out of all boxes. Note, a card in Box 1 is picked twice as likely as from Box 2, four time as likely as from Box 3, etc. The system randomly chooses to present the student one side of the card. As response, a student enters a string Empty string: Indicates that the student knows the answer. The card is moved to the next higher box f any). The application proceeds by randomly picking another card - Nou-enpty string: The string is compared with the other side of the flashcard. If the strings are identical, the answer is correct and the flashcard moves to the next box (if any). If the answer is incorrect, the flashcard is placed in Box 1. The application proceeds by randomly picking another card -Special strings: (1) ! exit indicates that the student ends the study session. The cur rently displayed flashcard remains in the same box. (2) % shows the other side of the flashcard List a box's content. The TUI supports a command lsox followed by a number. The application prints out each card that is currently in the specified box. The format prints challenge and respon separate lines, followed by an empty line List all cards that contain a given string. The TUI supports a command list-with followed by a blank and a string that ends with the le. Any flashcard that contains the string eitherStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started