Question: Could you help me solve the qusetion? USing C++. Thanks! 1) Create a class named Players with a default constructor, a public methods ReadFile, MaxSalary,

Could you help me solve the qusetion? USing C++. Thanks!Could you help me solve the qusetion? USing C++. Thanks! 1) Create

1) Create a class named Players with a default constructor, a public methods ReadFile, MaxSalary, and MaxSalaryName and a private data member salaries, which is an array with 50 floating point values and names which is an array of 50 strings. Use-1.0 to initialize all the salary values of the array and empty string for the name values initialization Question 7 Not answered 2) The public method ReadFile will read each line from the given filename and store each value into the arrays. The file is in the following format: Mark 0.00 out of 10.00 Nebula, 1.2 The Collector, 3.4 Drax, 5.6 Ronan, 7.8 Gamora,9.18 Flag question This method does not return a value 3) The public method MaxSalary returns the maximum salary in the data. 4) The public method MaxSalaryName returns the name associated with maximum salary in the data. You only need to write the class definition and any code that is required for that class. Place all code within the class definition. Our code will create and test your class. NOTE: We have provided a function that may make the parsing easier: int split(string s, char sep, string words[], int max words)s Answer: (penalty regime: 096)

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!