lotto, 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/9/2012 12:54:06 PM | Location : Lebanon

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

Write discussion on lotto
Your posts are moderated
Related Questions
i need to do my final project for my last year bsc honours degree in Business Information systems. I need to develop a system which is operational for hotel management system. th

Adding Events in VB   For adding the events in VB, first double click on the command button with the caption hello. The Private Sub command1_Click () and End Sub would be

Dialog Based Application: The application which app wizard generates is based on the dialog template resource.

A Project to Display a Database: 1. Suppose that there are 5 fields describing a customer. Id, address, name, city & state. 2. Put 5 text boxes on the form to exhibit the r

How to create a login form in vb 2010

Mostly time, you just desire to assign a single value to a variable you have declared. A variable having a single value is a scalar variable. At other times, this is convenient to

how to make logic of o program and how to use loop

A program needs to be written that is capable of simple image processing. All the images that are available for you to use, can be found on Blackboard in the Assignments section. T

I would like someone to look at my code and tell me why it''s not working

For reason of readability & consistency, employ the following prefixes along with descriptive names for variables in your VBScript code. S ub type Prefi