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.
Answer:
using Microsoft power point .
Explanation:
Start by opening a "Blank presentation" in PowerPoint. ...
Select the "Title Slide" option. ...
Type in your title and subtitle. ...
Select a background for the entire presentation. ...
Add new slides. ...
Set the transitions for your slides. ...
Add some more pizzazz to your presentation with animation!
Answer:
Cross Sectional Data.
Explanation:
Cross-sectional data:- These are the observations that are made at the same point in the defined time period. These observations could be on a single day or these observations can also be for a week, month, year.
So the case provided to us is the data for a season of NFL that was from 2011-2012 season.So we can say that the data is cross-sectional.
Answer:
import random
numbers = []
even = 0
odd = 0
for i in range(100):
numbers.append(random.randint(1, 200))
for i in range(100):
if numbers[i] % 2 == 0:
even += 1
else:
odd += 1
print("Even:", even)
print("Odd:", odd)
Explanation:
Gg ez.