You are to develop a program to define and test an object class whose instances will be used to store some data of a basketball player. We use this information to compute some statistics about our basketball players. A basketball player will have the following data:
firstname lastname gamesplayed minsplayed fieldgoals threepoints freethrowsmade rebounds assists steals
The 8 statistics are integers and must be stored in a single array within a Player object.
Your class needs to provide all the methods needed to:
TEST DRIVER
Once you have developed a good class definition, you need to write a “test” main program to test it out. Your test program should declare a variable of type Player and then prompt the user for the data to be set into the object. Use the player class reader method to retrieve the values from the input stream. Then, display the characteristics of the Player for the user to the screen.
Note that all interactive prompts are coming from the main program. The Player object itself is passive – it is not doing the prompting for values. All values are read into the object by using its methods.
You are to develop a program to define and test an object class whose instances will be used to store some data of a basketball player. We use this information to compute some statistics about our basketball players. A basketball player will have the following data:
firstname lastname gamesplayed minsplayed fieldgoals threepoints freethrowsmade rebounds assists steals
The 8 statistics are integers and must be stored in a single array within a Player object.
Your class needs to provide all the methods needed to:
Any other methods you need to solve the problem.
Once you have developed a good class definition, you need to write a “test” main program to test it out. Your test program should declare a variable of type Player and then prompt the user for the data to be set into the object. Use the player class reader method to retrieve the values from the input stream. Then, display the characteristics of the Player for the user to the screen.
Note that all interactive prompts are coming from the main program. The Player object itself is passive – it is not doing the prompting for values. All values are read into the object by using its methods.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more
Recent Comments