Answer to Question #144214 in Java | JSP | JSF for Phuoc

Question #144214

Write the method that takes a RegularPolygon as a parameter, sets its number of sides to a random integer between 10 and 20 inclusive, and sets its side length to a random decimal number greater than or equal to 5 and less than 12. Use Math.random() to generate random numbers.

This method must be called randomize() and it must take an RegularPolygon parameter.

call the method in the program's main method so that it can test whether it works, but you must remove or comment out the main method.

https://amooc.github.io/edhesiveshapes/


1
Expert's answer
2020-11-13T09:04:44-0500
Dear Phuoc , your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog