Answer:
D
Explanation:
The other answer choices make no sense so it's D.
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:
A
Explanation:
Only one condition can be true
Answer:
A data entity will have many possible instances.
Explanation:
A data model is the relative representation of data objects, showing the relationships between them as well as the rules guiding the relationships.
The graphical representation of data model showing the data requirements of a database is Entity-Relationship Diagram (ERD).
<u>Components of ERD</u>
<em>1. Entities</em>: These refers to all the table that makes up a database. An specific example of an entity is called an Instance of an entity. E.g London, Moscow, Johannesburg, Lagos are all records in a table called location. This example shows that a data entity will have many possible instances.
<em>2. Attribute:</em> This is the information needed to describe a particular table of database.
<em>3. Relationships</em><em>:</em> This shows how tables are linked together.