Answer:
import java.util.Scanner;
import java.util.Arrays;
import java.util.Random;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter low: ");
int low = scan.nextInt();
System.out.print("Enter high: ");
int high = scan.nextInt();
scan.close();
int rndnumbers[] = new int[10];
Random r = new Random();
for(int i=0; i<rndnumbers.length; i++) {
rndnumbers[i] = r.nextInt(high-low+1) + low;
}
for(int i=0; i<rndnumbers.length; i++) {
System.out.printf("%d: %d\n", i, rndnumbers[i]);
}
}
}
Answer:
B) computeValue(10);
Explanation:
Given
Header: void computeValue(int value)
Required
Determine the valid call
To call a function from another function or from the main, the following syntax has to be used.
<em>function-name(parameter-1, parameter-2, parameter-3,.....,parameter-n);</em>
<em />
In the function header given:, the following can be observed:
- The function name is computeValue
- It has only one parameter and it is of type integer
So, to call the function; we make use of computeValue(10);
Where 10 represents the value of the parameter (i.e. argument)
Unicode is a universal computing standard to represent texts in most writing systems. It was invented to store most of the world's characters. It started during 1987. Joe Becker from Xerox was the one who made a proposal for Unicode.
Borders can be applied to most HTML elements within the body. To make a border around an element, all you need is border-style . The values can be solid , dotted , dashed , double , groove , ridge , inset and outset . border-width sets the width of the border, most commonly using pixels as a value.