Answer:
Use the keyword def to declare the function and follow this up with the function name.
Add parameters to the function: they should be within the parentheses of the function. ...
Add statements that the functions should execute.
Answer:
Is is also a computer science acronym that implies bad input will result in bad output. Requiring valid input also helps programs avoid errors that can cause crashes and other erratic behavior.
IT'S FORMULA IS GIGO: GARBAGE IN GARBAGE OUT...
HOPE IT'S HELPFUL FOR U!!
AND PLZ MARK ME AS BRAINLIEST IF U LIKE THIS ANSWER!!!!
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.
Answer:
B-Everything you put online is available forever. Messages or photos will never be permanently deleted from memory cards on cameras or cell phones.