Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Could you help me solve the qusetion? USing C++. Thanks! For the given class cod

ID: 3702316 • Letter: C

Question

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

For the given class code given below, create the associated class definition. Our test cases already have the code below, we just need the correct definition (the information placed in a.h file). Not aiswered Mark D.OD aut of 1O.D0 y Flag questlon pass attespts .0; uarterba kstring a) r cAnt - else if3--2 else if (3-2) else if3--3 string QuarterbackigetaO cotol yards-stoi(current) ouchduns stodicurrent 1+-1 current- current+I1] pass corpletes-xj int Quarterbock: itorH eiset vold Quarterback: setAtt int x int Quarterback: :cetbitto return pass atteapt vodd Quarterbacki isetYards(int x) total yards return total yards double I -2.375 ipr2S) void Quarterback; :setTD(int x){ C- 8 ) else if (02.375)[ LIDO C-2.375 return tauchdowns else i (2.375) 2.375 return intercepts else (T2.375) -2.375 vold Quarzerbeck: 1Passcompleted(int x )else 1 (T 2.375) 855COMpletes-X T-2.375 return (C-YT I) 6 183 void Quarterback: : PassAtteeptedlH Answer: tpenally regine: 0%)

Explanation / Answer

class Quarterback { private: string name; int pass_completes; int pass_attemps; int total_yards; int touchdowns; int intercepts; public: Quarterback(); Quarterback(string d); void setName(string new_name); string getName(); void setComp(int x); int getComp(); void setAtt(int x); int getAtt(); void setYards(int x); int getYards(); void setTD(int x); int getTD(); void setPick(int x); int getPick(); void PassCompleted(int x); void PassAttempted(); void Interception(); float PasserRating(); void Touchdown(int x); };