Question: please thoroughly read the question Sample test code You should consider the following code to test your implemientation: int main( ) f SoccerTeam p1(22, Revolution,

please thoroughly read the question
Sample test code You should consider the following code to test your implemientation: int main( ) f SoccerTeam p1(22, "Revolution", "Boston", "MA"); SoccerTeam p2(19, "NYFC", "New York", "NY"); SoccerTeam p3(20, "Red Bulls", "New York", "NY"); SoccerTeam p4(20, "Red Devils", "Chicago", "IL"); SoccerTeam p5(25, "LAFC", "Los Angeles", "CA"); SoccerTeam p6(10, "DFC", "Dallas", "TX"): SoccerTeam p7(27, "TFC", "Tampa", "FL"); p1.add_opponent(p2); // returns true p1.add_opponent(p1); // returns false, can't add to self p2.add_opponent(p1); // returns false, already added to p1 p2.add_opponent(p3); // returns false, same state p4.add_opponent(p1); // returns true p5.add_opponent(p6); // returns false, ranking diff >5 p7.add_opponent(p1); // returns true cout p1 end 1 endl p2 endl; \} Sample output The following output was produced from executing our sample test code on our solution: Team Revolution (Boston, MA), ranked 22 faces: YYFC, Red Devils, TFC, Team NYFC (New York, NY), ranked :9 faces: Revolution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
