1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
PtichkaEL [24]
3 years ago
10

Write a method that takes a RegularPolygon as a parameter, sets its number of sides to a random integer between 10 and 20 inclus

ive, 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.


Could someone help me out here thanks! C:
Computers and Technology
1 answer:
monitta3 years ago
8 0

Answer:

public static void randomize(RegularPolygon r){

   int side = (int)((20-10) * Math.random()) + 10;

   int length = (int)((12-5)  * Math.random()) + 5;

   // assuming the regularpolygon class has setSide and setLength methods.

   r.set.Side(side);

   r.setLength(length);

}

Explanation:

The randomize method is used to access and change the state of the RegularPolygon class attributes sides and length. The method accepts the class as an argument and assigns a random number of sides and length to the polygon object.

You might be interested in
The worst "review platform" (e.g. TripAdvisor, Zomato, Yelp) that can't be trusted?
BigorU [14]

I think it would be Zomato since its not popular and probably have bad and fake reviews.

4 0
3 years ago
To complete this assignment you will:
german

<u>Answer:</u>

<em>Digital audio </em>

<u>Explanation:</u>

A transducer is a devices which converts energy in one form to another. A speaker is one type of transducer which converts electrical energy into mechanical energy.

<em>Lossless audio:</em> It is a compressed audio format where it stores the audio occupying lesser space without losing any data and can be stored in the digital medium.

<em>Analogy audio:</em> Recording audios in original sounds. Before coming into digital world, records are recorded on the magnetic tape.

<em>Digital audio:</em> Converting audio in 0’s and 1’s which the computer understands.

5 0
4 years ago
The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create
Oksi-84 [34.3K]

Answer:

False.  

Explanation:

In this question some information is missing the question does not mention which type of question is this. This question is a true/false type question.

isometric projection camera is an engineer or the technical drawing in which we represented the 3D(three dimensional) objects in the 2D(Two dimensional) objects. This camera representing the object in a visual manner. isometric projection is also known as Isometric drawing, In the isometric projection camera, all the angles are equal. It does not provide an illusion perspective by using parallax scrolling to create the illusion of 3D in a 2D game.

3 0
3 years ago
Do you think people are willing to buy these products? Why?
SSSSS [86.1K]
What products ma’am/sir
3 0
3 years ago
Read 2 more answers
How does Isabel respond to having to stay home and not work while every one else works? Esperanza Rising
koban [17]
Isabel feels pretty happy that she is free of work for the day. However she also feels sad that other people have to work when she is not. I read this book three times i would recommend it, It is interesting  and amazing!
5 0
3 years ago
Other questions:
  • (GAME DESIGN)
    15·1 answer
  • What is the most efficient way to include a space after each paragraph?
    13·2 answers
  • ______ is the software that blocks a user from being able to access your computer.
    9·1 answer
  • Based on the type of document you want to create, you must first select the page
    15·2 answers
  • Explain how a monitor can display the letters that you type on a keyboard. (Hint: Three Basic Computer Functions) *
    11·1 answer
  • Why are Quick Parts useful in an Outlook message?
    5·1 answer
  • Cómo se hacían antes las cosas que hoy en día se hacen apoyadas en aplicaciones y software?
    10·1 answer
  • Which of the following is an example of metadata about a webpage?
    7·2 answers
  • How do you enter the decimal 73 into the computer?
    11·1 answer
  • The _____ standard spells out measures and security procedures to safeguard the card issuer, the cardholder, and the merchant.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!