← Back

Code Challenge 16 - Raffle


A raffle is a simple contest where many individuals can submit one or more entries, and a winner is picked at random.

Skills to Practice

Challenge Tasks

  1. Create a console project named CodeChallenge16Raffle.
  2. Let the user input names to enter into the raffle. Enter the names into an array.
  3. If you’re using a statically sized array, such as with C# or C++, you can set a size/limit of 100 contestants.
  4. When the user is finished adding entries, draw a random winner from the array.

Sample Output