r/javahelp • • Oct 09 '24

Help making a program

Hello, I'm an amateur doing java I need help trying to do the following code using the program NETBEANS. I am not sure where to start without using buttons, I would really appreciate if someone would point me on a direction on how to start. The program must include the following:

At least 5 multiple choice questions
The ability for the user to enter an answer for each question
Feedback related to whether the user’s answer was correct
The ability to read in uppercase or lowercase responses from the user (you might want to use the &&, AND, Boolean logic operator for this)
A score counter that increases each time a question is answered correctly
Statistics at the end of the quiz that provides:
The number of questions answered correctly
The number of questions answered incorrectly
The percentage of questions answered correctly, rounded to one decimal place.
A user-friendly interface that implements a GUI
Appropriately named components, variables and constants
Commenting and appropriate spacing and indenting
Constants for all values that will not change as the program is run

Note: In your multiple choice quiz, you may want the user to enter in a letter as their answer.

0 Upvotes

5 comments sorted by

View all comments

1

u/StarklyNedStark Oct 09 '24

Look into the Scanner class and learn Java basics