Question: code in java. Create a program that draws a circle with four seperate parts. Each part should be filled in with a different color: one
code in java.
Create a program that draws a circle with four seperate parts. Each part should be filled in with a different color: one red, one green, one yellow, and one blue. The result should look like this:

This program should randomly turn three of the four segments white, one at a time, in a pattern that can be replicated by the user. The user will then click each segment in the order that it was turned white. If the user replicates the pattern correctly, the program should display a message saying 'You won!' and close. If not, the program will display a message saying 'You lost!' and close.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
