1. Problem Descriptions:
People living in a Pacific island like to play four games. These games are similar to our lottery games. One of the games is play 6 that is to randomly pick 6 different numbers between 1 and 56 including both numbers. The second game is play 5 that is to randomly pick 5 different numbers between 1 and 40 including both numbers. The third one is play 4 that is to randomly pick 4 different numbers between 12 and 32 including both numbers. The last one is play 3 that is to randomly pick 3 numbers between 1 and 10 including both numbers. The players can pick their own numbers for these games or let computer to produce the numbers for these games. Design a Java program to implement these games with friendly Graphics User Interfaces. For random number generation, see Section 6.7 on Page 230.
a. Users of your program can choose a game to play from clicking a button or selecting a menu item (You have to provide the two ways in your program);
b. Whatever a game chosen by a user, your program prompts users to pick the numbers by themselves or to let computer produce for them.
c. After users input their own picks or computer produces for them, show users what are their numbers for a game. Remember to check the validity of users’ inputs.