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

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 ?

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