Menu

[Solved]1 Create Class Called Player Write Proper Attributes Name String Description String Points Q37284981

1)    Create a class called Player: Write theproper attributes

Name (string), Description (string), points[] for every game(array of int) and the correct functions (Accessors and mutatorsthat access and update the info of the variables. Create the rightspecification file and implementation file. (.h and .cpp files)

2)    Create a player (player1) and initializeits members to the following values: name=””, description=”” andpoints [0,0,0,0,0,0,0,0,0,0] through a constructor. (Create aprivate function called by the constructor to build the array)

3)    Create 5 more players using a copyconstructor. (Keep those players in an array.

4)    The program asks to enter every player’sinfo to the user and keep that info in the instance variables ofevery player (Use the mutators).

5)    Create an extra object of the class player(player_extra) and assign player1 to player_extra. (Overload the=operator) Then change Player_extra points (use the mutator toupdate the array contents)

6)    Use the io manipulators to display thetotal points of the team, average points per game, total points perplayer, and avg per player results in the output file.

Use fixed, setw(), setprecision(2), and showpoint.

Expert Answer


Answer to 1) Create a class called Player: Write the proper attributes Name (string), Description (string), points[] for every gam… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *