Question
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
/***
* @author
*/
public class Assignment4 {
public static void main(String[] args) {
java.util.Random r = new java.util.Random(); // this line must appear only once
// in your code and must be added
// before the loop(s) that is used to
// generate the random numbers.
/**
* generates random exam score in the range [0, 200] for 11 students and
* stores it in an array of doubles.
*/
double[] exam = new double[11];
for (int i = 0; i < exam.length; i++) {
exam[i] = r.nextDouble() * 200.0;
}
/**
* generates random homework scores in the range [0,100] for 11 students
* and stores it in an array of doubles.
*/...