Question: **************PLEASE EXPLAIN CLEARLY***********(JAVA) Assume there is an initialized array called testScores with of size 80 with values already loaded ExamScores Index [0] [1] [2] [3]

**************PLEASE EXPLAIN CLEARLY***********(JAVA)

Assume there is an initialized array called testScores with of size 80 with values already loaded

ExamScores Index

[0]

[1]

[2]

[3]

[4]

[79]

ExamScores Content

100

96

82

88

84

76

a. Write the following methods getTotal(): returns the integer of the total of the scores in the testScores array

b. scoresOver(int num): returns the number of scores over the given score. Example: scoresOver(90) might return a 17 which would be the number of scores over 90.

Assume all required libraries are imported

2. Write the code segment to create an integer array called numArray with a size of 100

3. Write the code segment to load numArray with random integers from 1 to 1000.

4. Write the code segments to find the sum of numArray

5. Write the code to add the number 415 to list

6. Write the code to check to see if 237 is on the list.

7. Write the code segment to declare a File object for an external file called police.txt, then Scanner object to read the file in that file.

8. Write the code segment to declare a File object for an external file called dataOut.txt, then a PrintWriter object to write to that file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!