Question: 2. Practical Concepts 2.1 Create a Java program that declares an array of type int and call it myRandomNumbers, with a mix of 50. Using
2. Practical Concepts 2.1 Create a Java program that declares an array of type int and call it myRandomNumbers, with a mix of 50. Using a for loop, initialize the valles of the array with random integers from 0 to 99, then display the value of the 40 element 2.2 Create a Jav program that defines a method called "get Grade that accepts an array of type double called myScores as a fornul parameter. Using # for loop, the method iterates over the values of the array elements and check the score 1. if the score is at least 90,0, then the method displays the grade A b. if the sexire is at least 80.0, then the method displays the grade B. c. if the score is at least 70.0, then the method displays the grade C. d if the score is at least 600, then the method displays the grade D. c. otherwise, the method displays the grade F In the Main() method, ask the user to enter the scores of five tests and atore them in an array of type double. Then invoke the getGrade method by passing the array of user's score to display the grades
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
