Question: Create a method called totalPoints which will accept an array of Strings and a two-dimensional array of doubles. The goal is to print out the
Create a method called totalPoints which will accept an array of Strings and a two-dimensional array of doubles. The goal is to print out the total points scored by each NBA legend. The print out should display each players name and the total points they scored casted to an integer.
| Player | Games Played | Points per game |
| Kobe Bryant | 30 | 20.4 |
| Carmelo Anthony | 32 | 27 |
| Lebron James | 32 | 21.0625 |
| Chris Paul | 24 | 18.5 |
| Rajon Rondo | 26 | 17.5 |
| Kevin Durant | 30 | 25.4 |
| Retsim Tseuw | 30 | 45.8 |
Sample output:
Kobe Bryant scored 612 points.
Carmelo Anthony scored 864 points.
Lebron James scored 674 points.
Chris Paul scored 444 points.
Rajon Rondo scored 455 points.
Kevin Durant scored 762 points.
Retsim Tseuw scored 1374 points.
Please write in Java and on a simple level
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
