+ 1

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

28th Mar 2020, 5:16 AM
Hello
Hello - avatar
12 Antworten
+ 1
its not homework its a challenge me and my friends made
28th Mar 2020, 5:27 AM
Hello
Hello - avatar
+ 1
the reason im posting it here is becuase i tried, and im still confused on the first part. only the first part but the rest of the code, i think works.
28th Mar 2020, 5:44 AM
Hello
Hello - avatar
+ 1
Hello If you are posting this for the help to complete your code with which you are struck, then please show your attempt, then some one of community help you to achieve it. If you are posting it as a challenge (not homework), then post it in this thread.. If it eligible to post there then others also participate in your challenge with there try.... All the best. https://www.sololearn.com/Discuss/1270852/?ref=app
28th Mar 2020, 12:29 PM
Jayakrishna 🇮🇳
+ 1
First you start your project then we will help you
28th Mar 2020, 7:05 PM
Santosh Singh
Santosh Singh - avatar
+ 1
okay ladies and gentleman
3rd Apr 2020, 12:31 AM
Hello
Hello - avatar
+ 1
heres the code
3rd Apr 2020, 12:33 AM
Hello
Hello - avatar
+ 1
you guys said to try it
3rd Apr 2020, 12:34 AM
Hello
Hello - avatar
+ 1
i gave it my best shot
3rd Apr 2020, 12:34 AM
Hello
Hello - avatar
+ 1
its made to run with drjava
3rd Apr 2020, 12:35 AM
Hello
Hello - avatar