Write a program that helps teachers test their students in their knowledge with
ID: 3545550 • Letter: W
Question
Write a program that helps teachers test their students in their knowledge with colors and shapes. The program consists of two classes ColorShape and testColorShape. Class ColorShape has two instant variables choiceColor and choiceShape (both int). Your class should also have a constructor and a setMethod for the instant variables.
In your test class you should use JFrames to show a shape of certain color (for example a red square). You need to start first by asking about the shape and then about the color using JOptionPane. Whether the answer is wrong or right the user should be shown another question (new colored shape) and you need to state that the answer was correct or incorrect. If the student enters a 0 as an answer (either for color or shape) for a question the program should exit.
Important Notes:
Application.setVisible(false);
Explanation / Answer
Deadline ?
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.