Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to create a GUI for the quiz game with the following functionality ( 1 ) As the GUI opens, it should allow the user

How to create a GUI for the quiz game with the following functionality (1)As the GUI opens, it should allow the user to type in their name at the beginning of the game. We should have a button or some activation in place to submit this information and store within a variable. (2) Once the name has been entered there should be menu options (these can be buttons), the first should read "admin" and the second should read "play game" . We should then create the following functions for following options : (a) Admin menu: -(i) Add single question: This option should present the user with 3 text fields for the question, answer and name of the CSV file they wish to store in.(2) Once all fields have been populated, you should allow the user to submit (via a button) to store that data in the correct destination. We should create a test function to read the last line of the CSV file we added the new question to and see if it has been sucessfully appended. (ii) Add multiple questions: (1) This option should present the user with 2 buttons and a text fileld ; one button to upload a CSV file full of questions and answers, the other to submit the questions and the text field to specify the name of the CSV file they wish to store in.(iii) Remove a question: (1) This option should present the user with 2 text fields and submit button. One text field is for the row number and the other is for which CSV file you want to remove from. The submit button to submit the request. (iv) For all the above features, we should write test functions to seef if the correct processes have been outputted from the submit buttons. (b) Play Game: We should utilise GUI components to print out the questions such as text labels(show score and dice roll), buttons(to roll dice and submit answers)etc. Please explain with as much detail as possible how to build the above GUI using window builder in Eclipse IDE and also to code from scratch - Many Thanks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

Classify delivery styles by type.

Answered: 1 week ago