Course Solutions Uncategorized (Solved) : Create Class Randomstar Models Star Burst Random Lines Radiating Directions Given Point Co Q31249460 . . . .

(Solved) : Create Class Randomstar Models Star Burst Random Lines Radiating Directions Given Point Co Q31249460 . . . .

 

Create a class RandomStar which models a star burst of randomlines radiating in all directions from a given point. Theconstructor takes the x, y coordinates of the center of the star,the maximum distance of the x and y coordinates of the radiatinglines from the center of the RandomStar, and the number of lines todraw.

The draw method takes the graphical context as a parameter. Itdraws the specified number of lines. Each line has one end point atthe center of the RandomStar. The other end has x and y coordinateseach of which are less than the maximum distance specified from thecenter.

Your output

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post