I'm trying to yes...do an assignment, but can't seem to wrap my head around it for some reason.
The assignment is:
-Create a lottery game application.
-Generate three random numbers from 0-9
-Allow the user to guess three numbers.
-Compare each of the users guesses to the three random numbers and
display a message that includes the users guesses and the randomly generated numbers and the amount of $$ won.
-The applications should accomadate repeating numbers.
(ie. the user guesses 1,2,3 and 1,1,1 comes up..he/she should only get credit for the one "1")
I've been going back and forth with different thoughts on how to proceed, and build on what I have.(if possible).
I'm coming here in hopes there is someone, who can guide me in the right direction.
This is where I am so far.
I would write this as a command line application first, without worrying about the GUI components. Once you have the logic working (your "model"), then you can connect it to a GUI (your "view").
As for the logical model, you already have the problem fairly well defined in English. I would suggest writing each of these "tasks" as a separate Java method. For example, you might write a method generateRandomNumbers(), or getUserInput(), or displayResults()...
I think you'll find it helpful breaking the assignment down into parts like this. Try that, and see how it goes.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org