Answer:
Java code is given below
Explanation:
import java.util.Random;
class Die{
private int sides;
public Die(){
sides = 6;
}
public Die(int s){
sides = s;
}
public int Roll(){
Random r = new Random();
return r.nextInt(6)+1;
}
}
class DieRoll{
public static void main(String[] args) {
Die die = new Die();
int arr[] = new int[6];
for(int i=0; i<6; i++)
arr[i] = 0;
for(int i=0; i<100; i++){
int r = die.Roll();
arr[r-1]++;
}
for(int i=0; i<6; i++)
System.out.println((i+1)+" was rolled "+arr[i]+" times.");
}
}
Answer:
Computer is called versatile and diligent device because it is used in almost all the fields for various purposes and it can perform the task repeatedly without loosing its speed and accuracy for long time.
Sorry to answer you so late but that would be truth because that is the first rule of science which is what thermodynamics depends in.
The first law of thermodynamics is a type of law of conservation but with thermodynamics systems.
So, in gogle I found this: "The law of conservation of energy states that the total energy of an isolated system is constant; energy can be transformed from one form to another, but cannot be created or destroyed."
Like I said, sorry to reply so late but I hope this helped! =)
5 I don’t think it’s good. I thought it was boring.
Answer:
(Hope this helps can I pls have brainlist (crown) ☺️)
Explanation:
1.Drag and drop Comment Box into your survey from the BUILDER section.
2.Enter question text.
3.Configure any additional options.
4.Click Save.