lotto program, Visual Basic Programming

You are asked to create the LOTO game customized according to the following constraints:

1. Create a grid containing 20 numbers (20 buttons: button1, button2, …button20)
2. When the form is loaded, the buttons are supposed to have a specific Back Color.
3. The player can choose only 6 numbers from the grid.
4. Whenever the number is chosen, its back color should be automatically changed.
(Chosen numbers should have different color from the other buttons)
5. Whenever the user decides to get the result, he should press the “Get Result” button.
6. When the “Get Result” button is pressed, the chosen numbers should be compared to the generated random numbers to display the following:
• Guessed numbers.
• Total of guessed numbers.
You should write a function to generate the 6 different random numbers.

If Total guessed is 1, 2 or 3 then the user wins the third prize.
If Total guessed is 4 or 5 then the user wins the second prize.
If Total guessed is 6 then the user wins the first prize.
Posted Date: 12/10/2012 8:06:53 AM | Location : Lebanon







Related Discussions:- lotto program, Assignment Help, Ask Question on lotto program, Get Answer, Expert's Help, lotto program Discussions

Write discussion on lotto program
Your posts are moderated
Related Questions
how to add the hangman images

Databound Controls - A controls use to display the contents of table using Data Control , have to bound each Control to the specific field and the controls are Known as the Data Bo

Write Visual Basic programs for the following: 1.     Write a program that uses a "For Loop" to generate a list of temperature conversions in one degree increments from a given

We are need of VB.NET Dynamically Created Gridview with Textboxes, DDLs Utilizing VB code in ASP.NET I dynamically create a calendar showing either 3 or 6 or 9 or 12 months, dep

Adding Handlers With Class Wizard: Whenever a handler is added, the class wizard places the prototype for the message handler in the header (.H) file. It gives a skeleton hand

PROGRAM TO ZOOM A RECTANGLE AS YOU DRAG 1. Generate a SDI application 2. Declare the 2 member variables clicked of Boolean type and m_ptoldpt of CPoint type. Use the class t

I would like to know how to deploy a VB.NET Application using SQL SERVER as a back-end database

MESSAGE LOOP   The message loop is the code in the Win 32 based application. It retrieves messages from the application's message queue and passes these to the related window

Dialog Based Application: (A) Dialog Based Application to demonstrate Animate Control: 1. Build a dialog based application. 2. Design the dialog as shown. 3. Place

write a v.net function called is vowel that returns true for vowel letters