Create a C# class that models the lotteryticket:
- It needs 4 numbers
- The winning numbers
- It needs to compare a ticket to the winning numbers
- Constructor must randomly generate the 4 winning numbersbetween 1 and 72
- Avoid any magic numbers in the code
- Make sure code runs withouterror and that it works with the HTML form below.
Lotto Number Generator First Number 10 Second Number 15 Third Number 16 Fourth Number 18 Number Matching 4 Check Ticket Clear ◄► ◄► ▸ ◄►
Create a C# class that models the lottery ticket: - It needs 4 numbers - The winning numbers - It needs to compare a tic
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am