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:
The second one:
int sum = 0; for (int i = 0; i < values.length; i++) { if ((values[i] % 2) == 0) { sum += values[i]; } }
Answer:
Bullet
Explanation:
I've written a paragraph before. I should know!
I don’t really understand what this question is asking 100%, but you can either walk into the McDonald’s you want to work at and ask for an application. They might give it to you, but will most likely tell you to apply online.
If they do tell you to apply online, go to the McDonald’s website and scroll all the way down to the bottom.
There are sections you can choose such as: About Us, Careers, Services, Community, and Contact Us.
Clearly you want to go to Careers.
Under Careers are: Education Opportunities, Employee Perks, Meet Our People, Working With Us, and Apply Now.
Click Apply Now and start your application.