Lucky for Life Lottery Number Generator

Solution

Write an application to help choose the Lucky for Life lottery numbers.

The Lucky for Life Numbers follow these rules:

  • Pick a group of 5 numbers from the numbers 1 to 43, inclusive (NO DUPLICATES!)
  • Pick 1 number (the LUCKY BALL number) out of the numbers 1 to 43.  This one number can duplicate one of the 5 already picked above.  This Lucky Ball number is totally independent of the group of 5 picked above.

Your application should prompt for the number of quick picks desired.  It will then generate and output that many Lucky of Life numbers.

The group of 5 numbers in each quick pick must be sorted.  The lucky ball is printed after the group of 5.; it is not involved in the sort.

Make sure your generator program keeps generating these numbers by asking the user if they would like to run the generator again.  Use the Project Template.  In fact, use this template for all future assignments as well.

Happy Computing!