Lottery game

Write a program which simulates a lottery game (6 of 36).
1. The application initially asks the user gives as input 6 numbers (there should be no repetition for numbers).
2. The application will generate 6 random numbers in the range 1 to 36 (there should be no repeat of numbers).
3. The application will compare the numbers of user input and generate numbers (from application) and will show the result (as has shot numbers of users)
Additional information (help): During the development of power will have to use strings (arrays) and cilke (Loops).
(Oblikative) A. Introduction of 6 numbers have to save in a range (int []). Selected numbers should not repeated! This should check during the process of selecting the numbers from the user with! 2. Store random numbers in a range (int []). To generate these numbers using the method Math.random (). Also, this process should you care that the application not generate numbers that are repeated! Documentation: Math (Java Platform SE 6) search method random (). 3. Analyzing the selected numbers and Numan generated, the application should display a message which shows how the numbers have shot occupant (x of 6)! Also encourage you to use as many classes / objects and methods (eg a method to check whether the numbers that are repeated), this is not mandatory, but will facilitate the process of programming!

Re: Lottery game

Thank you very much for posting your assignment, and it looks like a good one. Please be assured that all of us here at the Java-Forums.org wish you well in working towards its completion. Oh, also, if you need help here, please feel free to ask a specific question, and show the current fruits of your efforts.

Re: Lottery game

Originally Posted by Festimd

Can you help me to whrite it in JAVA ?

This question is just too broad for us to be able to give a specific answer, and about the best we can do for this is to point you to the Java tutorials where you can hopefully learn enough Java to be able to at last ask a better question. Understand please that no one is going to write this for you, nor should they, as they would be cheating you out of a valuable learning experience. Please first try to solve this on your own; take a look at this link which can help you: So, You Need to Write a Program but Don't Know How to Start, and then please come back if you have any specific answerable questions.

Re: Lottery game

I need it for a short period of time that's why i asked for help.Please forgive me for the unpolite way of question, here is my work but i can't totally adjust it to the program request can u tell me what to change in my code? thanks a lot for the time you dedicated to me.