Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

Lottery Application- Write a Lottery class that simulates a

 
Rafael Martins's Avatar
  • Answered by:Rafael Martins
  • Computer Software Engineer
  • Positive Feedback: 100.0 %
  • Accepted Answers: 446
Verified Expert
in Programming

Recent Feedback

Positive
Very Smart Guy!!
Positive
Very nice will work with Rafael again
Positive
very help full and and quick to respond he has been amazing and im glad he could...
Positive
Outstanding! Thank you a million times!
Positive
Rafael Martins did a great job with my question, and very quickly. Thanks!!
Positive
On time and answers just as soon as questions are asked.
Positive
Great work and very fast!
Positive
His work really helps
Positive
Great work
Positive
Great work

Customer Question

Lottery Application- Write a Lottery class that simulates a lottery. The class should use the Random class (from the Java API) to generate a random number in the range of 0 through 9 for each element in the array. The class should also have a method that accepts an array of 5 integers that represent a person's lottery picks. The method is to compare the corresponding elements in the two arrays and return the number of digits that match. For example, the following shows that lotteryNumbers array and the user's array with sample numbers stored in each. There are two matching digits (elements 2 and 4)        lotteryNumbers array: (7, 4, 9, 1, 3) user's array: (4, 2, 9, 7, 3)

 

Optional Information:
OS: Windows XP; Browser: IE

Submitted: 1432 days and 6 hours ago.
Category: Programming
Value: $22
Status: CLOSED
Picture
Expert:  Rafael Martins replied 1432 days and 6 hours ago.

HiCustomer Thank you for asking your question on JustAnswer.

1. I think your post was truncated, could you kindly send the rest of the requirements ?

2. What is you Java version ?

3. Are you using an IDE such as NetBeans, Eclipse or JGrasp ?

4. Do you need a GUI (window) or a console (text mode) program is ok ?

5. When do you need this done by ?

Thank you.

Customer replied 1432 days and 5 hours ago.

1. I think your post was truncated, could you kindly send the rest of the requirements ?

In addition, the class should have a method that returns a copy of the lotteryNumbers array. Demonstrate the class in a program that asks the user to enter five numbers. The program should display the number of digits that match the randomly generate lottery numbers. If all of the digits match, display a message proclaiming the user a grande prize winner.


2. What is you Java version ?

Java 6.0-Standard Edition

3. Are you using an IDE such as NetBeans, Eclipse or JGrasp ?

-jGRASP version 1.8.6_12.

4. Do you need a GUI (window) or a console (text mode) program is ok ?

nope, no GUI's. I just have to run the program through JGRASP.

5. When do you need this done by ?

Whatever is convenient for you...I have two AP tests this week so I was planning on getting these in by Wed., but anytime this week would be great (the sooner the better). I have two more that I'm working on, but I gave up on this one for the moment.

Picture
Expert:  Rafael Martins replied 1432 days and 5 hours ago.

That's great.

Now I am able to start working on your assignment.
I will send you the answer by tomorrow (05/05/2009).

Thank you.

Customer replied 1432 days and 5 hours ago.

ok, sounds great. Thank You.

Accepted Answer

Picture
Expert:  Rafael Martins replied 1432 days and 1 hours ago.

Hi,

Here you go: LotteryApplication.java

Let me know if you need further assistance.

If everything is ok, please do not forget to click in the Accept button and leave me a positive feedback.

A bonus is also greatly appreciated.

Next time you need my help, just start your question with TO RAFAEL MARTINS.

Thank you.

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 100.0 %
Accepts: 446
Answered: 5/5/2009

Experience: Desktop, Mobile and Web Developer. 7+ years of experience. Creative solutions provider.

Ask this Expert a Question >
Customer replied 1431 days and 23 hours ago.

Thank You!

 
Tweet

4 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
is there a python programming person available 3/28/2013
Write a menu-driven program that allows users do two options: Option 3/27/2013
1. Which one of the following control structures provides for 3/27/2013
JavaScript: Multiple Choice Questionnaire 3/25/2013
RA-211 3/24/2013
How do you create a searchable public Google drive folder in 3/24/2013
RA-211 3/24/2013
I am an entrepreneur with no current coding skills, but an 3/23/2013
I have base code in VBA that opens all excel files from a folder 3/23/2013
Program in C++ 3/23/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
159 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us
© 2003-2013 JustAnswer LLC