Can you please help me I am confused?(java)(itâs a challenge btw for you all out there during the coronovirus times).
You are writing a program that simulates a game (such as Duck Duck Goose). The following are the requirements: 1. You must ask the user for the number of participants 2. You must ask the user for the length of the cycle (for example, Duck Duck Goose has a cycle of 3, whereas Eenie Meenie Miney Mo has a cycle of 4) 3. Your project must ONLY display the winner of the game (counting from 0), So, for example, if the winner is the 4" participant, your program should display 3. 4. Your project MUST use a boolean array and cannot use ArrayLists. 5. Your project MUST include a method with the following signature: public static int playGame (boolean( array, int cycle) In the array, true represents a player that is still in the game and false represents a player that has been eliminated. You must declare and fill your array in your main method, not in the playGame method. 6. The class name for your project must be DuckDuckGoose.java and you are only creating one file for this assignment. This project will be graded on: 1. Documentation and Readability: Your code must be fully commented and employ standard Java-style conventions. 2. User-Controlled Exit: The user is asked if they want to continue or exit the program. 3. Project Requirements : a. Ask user cycle number b. Ask user for number of participants c. Correctly declares and uses an array to store the participants. d. Correctly determines the winner for my 3 different test cases sample data: cycle: Cycle: 3 Participants: 5 Winner: 3 Cycle: 5 Participants: 3 Winner: 0 Cycle: 12 Participants: 12 Winner: 10