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

Design and implement a graphical user interface application that performs flashc

ID: 3625241 • Letter: D

Question

Design and implement a graphical user interface application that performs flashcard testing of simple mathematical problems. Allow the user to pick the category, Addition, Subtraction, Multiplication, or Division. A problem is displayed by generating 2 random numbers. You determine the size of the numbers to be generated. The user is to input the answer. Display a “Next” button and and “End” button on the screen. Keep score of the user’s score of correct answers and the number of problems presented. The “Next” button should generate a new problem, and the “End” button should end the program.

Include a typed list of specifications, the pseudocode, and the program. Test the program to be sure that all elements are functional. Be sure to handle any exceptions that might occur and give meaningful, descriptive error messages. Include with your submission a list of test cases that you have used to test the program.

Explanation / Answer

import javax.swing.*; public class FlashCardGUI extends JFrame { JPanel mainPanel = new JPanel(); FlashPanel card; public FlashCardGUI(int firstNumber, int secondNumber, String operand) { super("Flash Card"); setSize(200, 200); this.setAlwaysOnTop(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); card = new FlashPanel(firstNumber, secondNumber, operand); add(card); setVisible(true); } public void setAnswer(int answer) { card.setAnswer(answer); card.repaint(); } } import java.util.*; public class FlashEngine { int Correct; int Number1; int Number2; int[][] Table = new int[20][20]; int answer; public FlashEngine() { Correct = 0; for(int j = 0; j
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