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
This section will discuss the fundamentals of VBScript and define concepts such as datatypes, loops and others. VBScript Data Types VBScript contain only one data type called

Message Box: The Message Box can be specified a title as shown in figure to specify the title for the message box follow by the command given below:  Private Sub Command1_C

CONTEXT-SENSITIVE HELP   The Context-sensitive help gives online help for the circumstances which is associated with that state. The Context-sensitive help can be implemented

The scope of a variable is finding out by where you declare it. While you declare a variable in a procedure, only code in that procedure can access or alter the value of that varia

While a run-time error takes place, the properties of the Err object are filled with information which uniquely identifies the error & information which can be used to handle it. I

Record Set: The record set presents the records in a base table or the records retrieved due to the query. The record set falls into 3 classes. These are table type record set

I have an excel list with a lot's of serial numbers that have been entered by hand from PDFs online (1-5 serial numbers per PDF). Many of the values are duplicates, wrong, or conta

I need to design a logic for a program that allows a user to enter 15 numbers, then displays each number and its difference from the numeric average of the numbers entered

Creating an application that will calculate the cost of a car rental based on the number of days that the car is rented. the cost of the car rental includes the cost of the car its

SDK PROGRAMMING The SDK programming is a developing Win 32 based programs using the Win 32 API that directly interact with the hardware. Therefore the execution of the SDK prog