Answer:
i have no ideaaaaaaaaaaaaaaaaaaaaaa
Explanation:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa kill me
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.
The CPU executes arithmetic and logic operations in the arithmetic and logic unit (ALU).
<h3>What is an ALU, or an arithmetic and logic unit?</h3>
- A combinational digital circuit known as an arithmetic logic unit computes arithmetic and bitwise operations on integer binary integers.
- A floating-point unit, on the other hand, works with floating-point numbers.
- The component of a central processing unit known as an arithmetic-logic unit performs arithmetic and logic operations on the operands in computer instruction words.
- An Arithmetic Logic Unit (ALU) is a component found within computers that can execute logical operations in addition to arithmetic operations, such as AND, OR, Ex-OR, invert, etc (e.g. Addition, Subtraction, etc.).
To learn more about arithmetic and logic unit (ALU), refer to:
brainly.com/question/7994884
#SPJ4
An algorithm<span> is a well-defined procedure that allows a </span>computer<span> to solve a problem. Another way to describe an </span>algorithm<span> is a sequence of unambiguous instructions. ... In fact, it is difficult to think of a task performed by your </span>computer<span> that does not use</span>algorithms<span>.</span>