Search:
Namespaces
Discussions
.NET v1.1
Feedback
Tracking your lottery pick on the Web
Details
Related Types
Site:
C# Corner
Original URL:
http://www.c-sharpcorner.com/Code/2002/April/Pick6Checker.asp
Summary:
A few weeks ago, the New Jersey State lottery was up to 300,000,000 dollars. That's quite a large pot, and some lucky winner cashed in. If you come up with the winning number you have the option of taking a lesser pay-out in cash rather than the full annual payment. Of course, this is after the government takes its cut, but a few million dollars is nothing to sneeze at, and the money the government takes, goes to good causes such as education. Anyway, my wife bought a ticket, and she kept asking me how to check the number. I decided that instead of waiting to watch a bunch of ping pong balls bounce around, it would be easier to take the lazy route and write a program that checked the winning number on the web against my wife's number. If her 6 numbers matched all 6 of the winning numbers on the web, the program would happily proclaim that my wife had won.
System.EventArgs
System.IO.FileStream
System.IO.StreamReader
System.IO.StringReader
System.Net.HttpWebRequest
System.Net.HttpWebResponse
System.Xml.XmlTextWriter
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com