Question: Java Question: Consider the following array of numbers : Plaver ID Points Assists Rebounds 23 12 15 10 12 23 12 10 20 10 A

Java Question:

Consider the following array of numbers :

Java Question: Consider the following array of numbers : Plaver ID Points

Plaver ID Points Assists Rebounds 23 12 15 10 12 23 12 10 20 10 A triple double occurs when a particular player (represented by player ID), has double digit numbers (>=10 in 3 categories (represented by the columns entitled: Points, Assists, Rebounds). In the above example, Players 1 and 3 achieved triple doubles, however, Player 2 did not. Write a program that continually allows a user to input a player ID, determine whether that player achieved a triple double, and print out if they did indeed achieve a triple double. * If the user enters a -1, the program will print "Thanks for playing" and exit If the user enters a valid Player ID, print their Player ID and triple double statu:s Bonus (3 marks): If the user enters a Player ID that is not within the provided 2D Array, print out "This Player ID is NOT VALID, please try again" Example Console Output: Program >> Enter a Player ID User>>12 Program >> Player ID 1 did not achieve a triple double Program >> Enter a Player ID User >> 23 Program >> Player ID 23 achieved a triple double Program >> Enter a Player ID User>>1 Program >> Player ID 1 is NOT VALID, please try again Program >> Enter a Player ID User >>-1 Program >> Thanks for playing. EXIT DEMO the above output to your TA. The bolded part is necessary to obtain full marks. You can use the below array to test your code: int [][ ] playerData - 123,23,15,12),(12,9,10,10),(8,10,12,20))

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!