I have part of the assignment but keep getting errors. Please help. Thank you.

1 answer below »
I have part of the assignment but keep getting errors. Please help. Thank you.
Answered Same DayFeb 07, 2021

Answer To: I have part of the assignment but keep getting errors. Please help. Thank you.

Swapnil answered on Feb 08 2021
144 Votes
75509/Solution.cpp
75509/Solution.cpp
#include
using namespace std;
class PersonData
{
private:
       string singleHits;

       string battingAverage;
       string baseonBalls;
       string baseRuns;
       string homeRuns;
       int hitByPitch;
       long strikeOut;
public:
       void mutatesingleHits(string singleHits)
       {
           this -> singleHits = singleHits;
       }
       string accessBattingAverage()
       {
           return this -> singleHits;
       }
       void mutatebattingAverage(string battingAverage)
       {
           this -> battingAverage = battingAverage;
       }
       string accessName()
       {
           return this -> battingAverage;
       }
       void mutatebaseonBalls(string baseonBalls)
       {
           this -> baseonBalls = baseonBalls;
       }
       string accessSingleHits()
       {
           return this -> baseonBalls;
       }
       void mutatebaseRuns(string baseRuns)
       {
           this -> baseRuns = baseRuns;
       }
       string accessBaseOnBalls()
       {
           return this -> baseRuns;
       }
       void mutatehomeRuns(string homeRuns)
       {
           this -> homeRuns = homeRuns;
       }
       string accessBaseRuns()
       {
           return this -> homeRuns;
       }
       void mutatehitByPitch(int hitByPitch)
       {
           this -> hitByP...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here