Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a JAVA GUI flashcard program. The questions and answers are to be read fro

ID: 3539406 • Letter: W

Question

Write a JAVA GUI flashcard program. The questions and answers are to be read from a text file. The text file should have the format of one line for each question with the following line containing the answer or a comma separated file (CSV). <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />


Example:

            Who was the first President of the USA?


George Washington


What is the sum of 2 + 2?


4


The application should consist of a single (JFrame) window where the contents (JPanels) are swapped out as needed. When the program is launched it should ask the user for the file to read the questions and answers from (use JFileChooser). If there is a problem loading the file it is acceptable for the program to exit.


As the questions and answers are read, Flashcard objects should be created and stored in an array. Before the first flashcard is displayed the array needs to be randomized. After the array is randomized, the first question should be displayed to the user.


The question panel should consist of the question and a button to show the answer. After the show answer button is pressed the question panel should be replaced with the answer panel. The answer panel should consist of the answer and a button to show the next question. When the last question and answer have been displayed the program should show a message congratulating the user and have a button allowing the user to go through the flashcards again.


Just to be clear, simply type up the questions and answers text file in a text editor and include the file in the jar file. The program you write is required to only read the file.


Explanation / Answer

Any sample csv ??

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote