Wait what’s the question tho??
Answer:
import java.lang.Object
import java.lang.Math
public class RegularPolygon extends java.lang.Object{
public void randomize(RegularPolygon c){
int min = 10, max1 = 20;
double min1 = 5, max1 = 12;
double range = (max - min) + 1;
double range1 = (max1 -min1) + 1
int side = (Math.random() * range) + min;
double len = (Math.random() * range1) + min1;
c.setNumSides(side);
c.setSideLength( len);
}
public static void main(String[] args) {
RegularPolygon r = new RegularPloygon();
randomize(r);
}
}
Explanation:
The randomize method accepts a regular polygon class as its only parameter and assigns a random number of sides and the length of these sides with the 'Math.random' function.
OPTION A would be the answer
<span>The answer is Event. A user logging on, an application server connecting to a database server, an authentication server rejecting a password, or an antivirus scanner reporting a suspected virus are all examples of Event.
</span>
Answer:
The answer to this question is given below in the explanation section.
Explanation:
#include <iostream>
// it is preprocessor director that manipulate the input output in the program
using namespace std;// it is used to format input and output
int main() {
// main function is started
int x = 5;
// variable x is declared and initialized with value 5.
int y = 6;
//variable y is declared and initialized with value 6.
int z = 34; //variable z is declared and initialized with value 34.
int total = (x+(x + y)*z+y);
// variable total is declared and initialized with value of x,y,and z. and calculation performed on these value such as (5+(5+6)*34+6) that is equal to 385.
cout << total;
// print the value of total variable that is 385
return 0;
}