Given the number of edges "numEdge", implement a method which draws a green star on a black background with numEdge edges: void drawStar(int numEdge) { Example: draw Star(3) draw Star(6)

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 8RQ
icon
Related questions
Question

in java processing , Given the number of edges “numEdge", implement a method which draws a green star on a black background with numEdge edges:

void drawStar(int numEdge)
{
     .....
}

note : ( write the code over here )

 

 

 

Given the number of edges "numEdge", implement a method which draws a green star on a
black background with numEdge edges:
void drawStar(int numEdge)
{
}
…......
Example:
draw Star(3)
draw Star(6)
Transcribed Image Text:Given the number of edges "numEdge", implement a method which draws a green star on a black background with numEdge edges: void drawStar(int numEdge) { } …...... Example: draw Star(3) draw Star(6)
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT