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
The Document: The document contains the user's data. For illustration, after working on a text processor, the user may wish for to save the file. Such an action builds a docum

Write a program to print a digital clock which displays the time for 2 hours . ..

- I have the chapter 5 project completed already. This is due tomorrow. Modify the Very Very .Boards project from Chapter 5 to separate the user interface from the business logic.

Shopping Cart Purpose – Allows user to browse while keeping track of the items in which they will purchase at the end on the order page link and this will give a final price for al

Do While Loop Statement : The statements contained by the do...while loop block executes till the condition given in the while is true. The working of do...loop is elaborate

A vehicle dealership has a number of different items for sale: motorbikes, cars, vans and boats. Each class of items for sale has different characteristics that need to be recor

The Select Case structure provides an option to If...Then...Else If for selectively executing one block of statements from amongst multiple blocks of statements. Any Select Case st

1.   Make project in Visual Studio 2008. 2.   Controller Class is used for functioning. 3.   Login Form where three people can login like manager, staff and receptionist we c

I have all my program done except the loan part that I am having a lot of troubles with

to dial a person''s 10 digit number and assign it to their name