You are to develop a program t

C++ PROGRAMMING LANGUAGE FOR THE SOLUTION PLEASE!!!!

I need a full program please, do’t skip a single step!!!

Problem Statement

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:

  • provide a default constructor for your Player class
    • default first and last name are “unknown”
    • default integer values are 0
  • read a player’s data from a single line of input
    • These will be used later when we start reading records of data from an input file. The next iteration of this program will read a player from a single line of input file, so we want to set this up to make that easier to reuse.
    • You will pass a parameter that is a referenced to an istream. This function will assume the next line of input on that stream is valid. We will use cin as the stream to test it with. I will discuss this during the C++ review in class.
    • The reader method MUST NOT print messages to or prompt the user for data. It is a utility only.
  • Get methods for any data the test driver program might need to display on the screen later (at a minimum gets to retrieve each name and the values needed for this program’s output)
  • compute the Player’s Points per game and Minutes played per game
  • Any other methods you need to solve the problem.

 

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 t

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:

  • provide a default constructor for your Player class
    • default first and last name are “unknown”
    • default integer values are 0
  • read a player’s data from a single line of input
    • These will be used later when we start reading records of data from an input file. The next iteration of this program will read a player from a single line of input file, so we want to set this up to make that easier to reuse.
    • You will pass a parameter that is a referenced to an istream. This function will assume the next line of input on that stream is valid. We will use cin as the stream to test it with. I will discuss this during the C++ review in class.
    • The reader method MUST NOT print messages to or prompt the user for data. It is a utility only.
  • Get methods for any data the test driver program might need to display on the screen later (at a minimum gets to retrieve each name and the values needed for this program’s output)
  • compute the Player’s Points per game and Minutes played per game

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.

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

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.

Money-back guarantee

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 more

Zero-plagiarism guarantee

Each 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 more

Free-revision policy

Thanks 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 more

Privacy policy

Your 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 more

Fair-cooperation guarantee

By 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