Question: Pls use the java language to solve the following question The following program draws several stars. You can decide yourself how to draw a star,
Pls use the java language to solve the following question
The following program draws several stars. You can decide yourself how to draw a star, but using two triangles (one upside own) is a good way to do it.
a. Make two global variables: starX an starY that specify where to draw a star. b. Make a user-defined function that draws a star at the globally-defined location c. In you draw loop, draw several stars by alternately changing starX and starY, and calling your function. Also, draw one under the mouse

- Transcribed image text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
