Question: Please be specific in details. I need the data dictionary for this program below. Data dictionary of all user - defined variables; grouped by the
Please be specific in details. I need the data dictionary for this program below. Data dictionary of all userdefined variables; grouped by the function they appear inex: variables, functions, datafiles, structures, classes, etc. I need the functionvariable name, datatype, and purpose. Thank you!!
#include
#include
#include "Header.h
using namespace std;
class PlayerPerformance
private:
double battingAverage;
double onBasePercentage;
int stolenBases;
string classifyBattingAverage const
if battingAverage return "Excellent";
else if battingAverage return "Average";
else if battingAverage return "Good";
else return "Poor";
string classifyOnBasePercentage const
if onBasePercentage return "Very Good";
else if onBasePercentage return "Above Average";
else if onBasePercentage return "Average";
else if onBasePercentage return "Below Average";
else return "Bad";
char classifyStolenBases const
if stolenBases return A;
else if stolenBases return B;
else if stolenBases return C;
else if stolenBases return D;
else return F;
public:
void inputValues
cout "Enter batting average: ;
cin battingAverage;
cout "Enter onbase percentage: ;
cin onBasePercentage;
cout "Enter number of stolen bases: ;
cin stolenBases;
void displayResults
cout "Batting Average Classification: classifyBattingAverage endl;
cout OnBase Percentage Classification: classifyOnBasePercentage endl;
cout "Stolen Base Grade: classifyStolenBases endl;
;
int main
head;
PlayerPerformance player;
player.inputValues;
player.displayResults;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
