In this assignment, you will have to prepare a GUI-based application which permits a user to play a simple trivia game. The game must have 5 problems. Each problem must have a corresponding answer and a point value between 1 and 3 which is based on the difficulty of the problem. Manually hardcode the 5 problems, answers and point values into your program.
When creating the GUI for the game interface, use a layout of your preference with the suitable text fields, labels and buttons to implement your design. The program must ask the player each problem one at a time and allow the player to enter an answer. If the player’s answer matches the correct answer, the player wins the number of points for that problem. If the player’s answer is incorrect, the player wins no points for that problem and the program should show the right answer. After the player has answered all 5 problems, the game is over and the program must display the player’s total score and then terminate.