Question: String [] playerNames = {*anything is fine here*}; int [] playerPoints = {22, 5, 13, 11, 10, 8, 25, 30, 2, 9, 15}; 1. Create

String [] playerNames = {"*anything is fine here*"};

int [] playerPoints = {22, 5, 13, 11, 10, 8, 25, 30, 2, 9, 15};

1. Create a method that uses the above arrays to return the NAME of the player who scored the most points

2. Create a method that takes the playerPoints array and returns the average points scored.

3. Create a method that takes the playerPoints array and returns the total points scored.

4. Create a method that uses the above arrays and displays the NAMES of the students who scored above the average points (will need the method from #2 for this)

This should be a not too complex java code, just a simple answer to the questions here.

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!