There are four types of operator in QBASIC. They are Arithmetic operators,relational operators,logical operators and sting operator .a. arithmetic operators. Arithmetic operators are used to preform mathematical calculations like addition, subtraction, division, multiplication and exponential
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:

Explanation:
The Hexa-decimal numbers have base 16 and includes numbers:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F
The given steps are performed to convert a decimal number to hexa-decimal number, here to convert decimal number 35 to hexa-decimal number:
- Divide 35 by 16
- Note the remainder, r which is 3 here and quotient which is 2
- Again divide 2 (quotient) by 16 and note the remainder, r' which is 2 and quotient is 0
- We will stop here as the quotient is now 0. Usually division by 16 is repeated until we get quotient = 0
- Now arrange the remainder in reverse order to get the hexa-decimal number as r'r
- The hexa-decimal number is

Answer:
send a threatening text in reply, then block the phone number block the phone number, then contact his phone service provider immediately delete the text, then report the incident to authorities ignore the message, then get a new cell phone number.
Explanation: