Question: Write a java program that prompts three users to enter a specific set of words. For example: Sports Colors Foods Each set of words will
Write a java program that prompts three users to enter a specific set of words.
For example:
Sports
Colors
Foods
Each set of words will have five options
Once the user selected a set of words, the program will display the full list of options.
For instance, the program would display "you had chosen the sports data set and the possible options are basketball, baseball, volleyball etc".
The loop will continue 5 times, each time it will ask the three users to select a word from the data set theyve chosen.
Then the program will generate a word from that data set, and if the users selection matches with the computer, the user will earn one point.
For example, user1 selected basketball from the sports data set, and the computer also generates basketball from that set. User1 wins one point.
please use java and avoid break and continue statements
also avoid using arrays
thank you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
