Program for randomly generated 3- digit number matches, JAVA Programming

Program for Randomly Generated 3- Digit Number Matches

This assignment demonstrates your ability to use basic Java syntax including selection and looping statements. You will need to write a Java application that determines how often a randomly generated 3- digit number matches your favorite 3-digit number. For example, suppose your favorite number is 777, if the computer generated a 3-digit number 1 million times, how often would it pick 777?

Requirements:

There are several requirements for this assignment. Review each requirement before you prepare your solution:

1. Write a Java application called LotteryPick3 that will use an Input Dialog to prompt a user for their lucky 3-digit number and the number of times they would like the simulation to run.

2. You should use input validation to ensure a 3 digit integers was entered and the number of times they want the loop to run is between 1000 and 10 million. Error messages for improper/invalid input should be accompanied by a Dialog message explaining the issue and asking for a re-entry of the invalid data.

3. You will then write the code that generates a random 3-digit number and determines if it matches the lucky number. You will execute the loop the number of times the specified by the user in the input dialog prompt.

4. The simulation should keep track of the number of times the random number matches the lucky number.

5. The program should output using a Dialog box providing the input data as well as the number of times the lucky number was matched.

6. Both programs should compile and run without error.

7. Be sure to test your program carefully. Provide a list of comprehensive test cases used to validate your application.

Deliverables:

You should submit your LotteryPick3.java file in the WebTycho assignments folder prior to the due date of listed in the syllabus. Also, include your test cases used to validate your formulas and the results of your tests in a neatly, organized word document. You should name the word document firstinitiallastnamehw2.doc. (e.g., I would submit jrobertsonhw2.doc)

Posted Date: 2/28/2013 5:15:33 AM | Location : United States







Related Discussions:- Program for randomly generated 3- digit number matches, Assignment Help, Ask Question on Program for randomly generated 3- digit number matches, Get Answer, Expert's Help, Program for randomly generated 3- digit number matches Discussions

Write discussion on Program for randomly generated 3- digit number matches
Your posts are moderated
Related Questions
In JavaScript, what is event handling? What are the two categories of events? In java script we could capture events on do a few operation on the basis of which particular even

for $9.95 per month, 10 hours of access are provided.Additional hours are $2.00 per hour

This assignment requires you to design, implement and test a program using Java features from the first half of the subject content. You are required to implement in Java all the c

i would like to ask if you have someone able to do test plan & white box plan for the game 2048. Game already developed and tested (unit test only ). this task developed using the

What is Externalizable interface? Externalizable is an interface which have two methods readExternal and writeExternal. These methods give you a control over the serialization

Objective: create a simple object, put that object in a simple collection class, use that object and collection in a simple GUI application. Specification:  Consider a Librar

Explain the Reading documentation for a class in the class library For instance, let's suppose you need to use the URL class in the java.net package. Through reading the docume

Question 4 Write a program that receives two integer inputs from a user, an ending value, lastvalue and column, column. The program will display all numbers from 1 to lastvalue

Jakarta Struts is open source execution of MVC (Model-View-Controller) pattern for the development of web based applications. Jakarta Struts is robust architecture and can be used

Question 1 Explain any five buzz words in Java 2 Explain exception classes and also explain common exceptions in java 3 Explain primitive and abstract data type in java