Lotta Generator/ Random Number Generator
$25-30 USD
着払い
This exercise will use the Random Number function to generate the 6 winning numbers that you will attempt to guess. 1 Pick any 6 integer numbers from 1 - 50. Your logic should prevent the player from selecting a value LESS than 1 or greater than 51. The logic should prevent the player from selecting the SAME number (i.e. they cannot have two or more of their selections be the SAME number). 2 Display the players' 6 number selections on the CRT screen. 3 Use the built in Randomize() function to “shuffle?? the deck when drawing the 6 numbers that Lotto “picks??. This is the simulated "balls" being picked by LOTTO (i.e. Lotto = Int(Rnd() * 50) + 1). 4 Determine the number of "matches" (those numbers that the player picked that matches those that LOTTO drew). 5)If you matched 0, 1 or 2 numbers, you win NO money (but print some message such as "our schools WIN."). If you match 3 numbers (NONE of them the BONUS), you win $5.00 Ifyou match 4 numbers (NONE of them the BONUS) you win $36.00 If you match 5 numbers (NONE of them the BONUS) you win $1,000.00 to $25,000.00 dollars (i.e. Int(Rnd (25) + 1) If you match 6 numbers (NONE of them the BONUS) you win $1 million to $100 million dollar (i.e. Int(Rnd (100)+ 1) 1. Use a pair of one dimensional arrays of size 50. We ignore subscript 0, leaving 1 - 50. One array will "hold" the 6 numbers the player picked. The other array "holds" the numbers LOTTO drew. Set all array location values of both arrays to 0. Set the VALUE of one array’s location index location to 1 if the player selected THAT number (i.e. they picked 2, therefore ARRAY subscript index location 2 has value 1). Set the other array's location's value to 1 if LOTTO randomly “drew?? that number. [url removed, login to view] both arrays to determine if a match occurred. If the same subscript location on both arrays holds a 1, a match occurred. Use for loops to search through the arrays. ask for more info please
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
windows xp visual [url removed, login to view] 2005
プロジェクトID: #3923896