Customer Service Chat
Get quote & make Payment
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
Ask an Expert
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
Write your message here..
Default values for gdi objects, Default Values for GDI Objects: The de...
Default Values for GDI Objects: The default color for the brush is white, pen is black, and default bitmap is null and the default font is system.
Record set - database applications, Record Set: The record set present...
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
While loop - vbscript, In VBScript, the While...Wend statement is provided ...
In VBScript, the While...Wend statement is provided for those who are familiar along its usage. However, due to the lack of flexibility in While...Wend, it is suggested that you us
Loops - VBScript, Using Loops to Repeat Code Looping let you to run a g...
Using Loops to Repeat Code Looping let you to run a group of statements repeatedly. Some loops repeat statements till a condition are False; others repeat statements till a con
Variable length strings, Variable Length Strings: The Strings can be de...
Variable Length Strings: The Strings can be declared using As or $ as shown in the code below; the msg and msg1 are the two strings and they are assigned the values using '='.
Ddx - dialog data exchange, DDX - Dialog Data Exchange: The Data membe...
DDX - Dialog Data Exchange: The Data members can be related with specific controls in the dialog box. When the dialog box is displayed, the DDX will transfer the values into t
Repeating a statement until a condition becomes true, You can employ until ...
You can employ until keyword in two ways to verify a condition in a Do...Loop statement. You can verify the condition before you enter the loop (as illustrated in the following Chk
Displaying a file with scrolling - document class, Displaying a file With S...
Displaying a file With Scrolling: To display a file with the scrolling option allows the steps as shown below: 1. Generate a SDI application. 2. In the Step 6 of the App
Making decisions with select case, The Select Case structure provides an op...
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
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
Why Us ?
~24x7 hrs Support
~Quality of Work
~Time on Delivery
~Privacy of Work
Human Resource Management
Literature Review Writing Help
Follow Us |
T & C
Copyright by ExpertsMind IT Educational Pvt. Ltd.