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

Pls use the java language to solve the following question The following

- Transcribed image text

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!