Answer:
import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter a decimal value (0 to 15): ");
int num = scan.nextInt();
scan.close();
if (num < 0 || num >15) {
System.out.printf("%d is an invalid input\n", num);
} else {
System.out.printf("The hex value is %X\n", num);
}
}
}
Explanation:
Hopefully this example will get you going for the other assignments.
Circled plus sign adds another worksheet
Answer:
<u>First test:</u> Give a list of disordered numbers to the sorting algorithm an examine if the output is correctly sorted.
<u>Second test:</u> Give a list of ordered numbers to the sorting algorithm an analyze if the output is still correctly ordered.
<u>Third test:</u> Give a list of ordered numbers and some non-numeric values to the sorting algorithm and check how is managed the exception in case of error or if the output is correctly ordered.
USB ports, headphone jack/microphone port, and of course, a power button.
Answer:
A. Acceptable use policies
Explanation:
These specific actions that the user may perform are all described in the acceptable use policy. The company usually requires that the user read and sign this policy before being granted a network ID into the system itself. By signing this agreement the individual user agrees to perform ONLY the actions listed in the agreement and nothing else and are restricted from unauthorized areas.