Hello everyone,
Unfortunately I'm having trouble with a swing application I'm attempting to successfully develop. I'm using Netbeans JFrame Form for this. It's a math quiz application. The question will follow at the end of this. The primary features of it are:
- It has 6 difficulty levels based on grades (grade 1 through 6).
- Users have the option to generate math questions either randomly or in a certain order.
- Users can select the amount of questions they want to answer. (After a question is answered, a next one should generate either by a 'next' button or automatically.
Other features are filling in your name, live updating score, and end result. These last few bits I have on issue with, however, the ones mentioned above are killing the few amount of braincells I have left.
I've sort of developed the difficulty levels by using the following code: . And depending on the grade, change the range of the numbers.
Unfortunately that's about as far as I can get. Here are my questions:
1. How am I supposed to generate an amount of questions based on the user input? (For example, the user enters 5, and generates 5 questions).
2. How do I get those questions to generate one at a time, after each question is answered? Or by clicking a ''next'' button?
3. How do I get these components to corrospond together? The grades (difficulty), random (random questions or in order), and generating an amount of questions
based on user input?
If you want to provide a practical example (syntax), that's appreciated. Otherwise I'll simply accept a theoretical answer.
In terms of ''what do you have so far'', it's quite a lot, and I'm not sure what is relevant to post or not.