PROFESSOR: Michael G. Hilgers
SUBMISSION PROCEDURE: See Below
DUE DATE: See Blackboard
POINT VALUE: 50 points
PROFESSOR: Michael G. Hilgers
SUBMISSION PROCEDURE: See Below
DUE DATE: See Blackboard
POINT VALUE: 50 points
“lottery number chooser”
Example Form:
This is just an example. Your form does not have to look exactly like this. It just needs to have all the items listed above in the details section.
Details
You have been hired by a company to create an application that will generate random numbers to use for lottery tickets.
The application should create numbers for 3 different lotteries. The lotteries include:
• 3 number lottery (numbers 0 – 9)
• 4 number lottery (numbers 0 – 19)
• 5 number lottery (numbers 1 – 39)
Each lottery should not have duplicated numbers in it.
The outlined application requirements are included below.
Application Requirements:
• All objects (labels, text boxes, form, etc.) should have appropriate names/text.
• 3 read-only text boxes that display the numbers that were chosen for each lottery
• Numbers display in two digits (i.e. 2 will display 02)
• One button to generate all the lottery numbers
• This should be the only object with a tab stop (and should be 1)
• A method should be used to generate the random numbers
• You will probably want to pass the method the lowest number and highest number since it differs between lottery games
• Runs with no errors or warnings
• Include comments
• Heading comment (see example below) at the top of program
// Your Name
// IST 1551
// Assignment #
/* explanation of what the
* program does
*/
• Comment variables (i.e. variables used to collect input, variables used in calculations, putting input into variables, methods, etc.)
• Comment calculation sections
• Comment putting data into variables from form and vice versa
• Comment all functions and methods
Extra Credit
For 5 extra credit points make sure that the same number is not used twice in all of the lotteries.
• You will want to use an array
• A bool array would work nice
• You will want to create a method to set all numbers to false at the beginning and before each new lottery game
• Should be an instance variable
Submitting:
Zip the folder that contains all of your files for this assignment and upload to the assignment section in BlackBoard before due date/time.
Name your file YourLastName_YourFirstName.zip
Notes:
Be sure to contact me if you have any questions.
An example that I created is above. Please remember, this is an example and your program does not have to look exactly like this.
For detailed grading information, see the assignment rubric attached to this assignment. 5 extra credit points are available.
In ALL assignments, all objects on the form should have appropriate labels and names (not checkBox1, checkBox2, label1, label2, form1, etc.) and should include thorough commenting.