Need Help ?

Home / Expert Answers / Other / lab-activity-8-22-1-lab-winning-team-classes-0-11-file-is-marked-as-read-only-current-file-main-cpp-

(Answered): LAB ACTIVITY 8.22.1: LAB: Winning team (classes) 0/11 File is marked as read only Current file: mai ...



LAB ACTIVITY 8.22.1: LAB: Winning team (classes) 0/11 File is marked as read only Current file: main.cpp 1 #include <iostream

if (team. GetWinPercentage() >= 0.5) { cout << Congratulations, Team << team. GetTeamName() <<< has a winning average!

LAB ACTIVITY 8.22.1: LAB: Winning team (classes) 0/11 File is marked as read only Current file: main.cpp 1 #include <iostream> 2 #include <string> 3 #include "Team.h" 4 using namespace std; 5 6 int main(int args, const char* argv[]) { 7 string name; 8 int wins; 9 int losses; 10 Team team; 11 12 cin >> name; 13 cin >> wins; 14 cin >> losses; 15 16 team. SetTeamName(name); 17 team.SetTeamWins(wins); 18 team. SetTeamLosses (losses); 19 20 if (team. GetWinPercentage() >= 0.5) { 21 cout << "Congratulations. Team " << team. GetTeamName() << Run your roara often as you'd like before submitting for arading Below the any needed if (team. GetWinPercentage() >= 0.5) { cout << "Congratulations, Team " << team. GetTeamName() <<< " has a winning average!" << endl; } else { cout << "Team " << team. GetTeamName() << " has a losing average." << endl; } welop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer to LAB ACTIVITY 8.22.1: LAB: Winning team (classes) 0/11 File is marked as read only Current file: main.cpp 1 #include 2 #i...
We have an Answer from Expert

Buy This Answer $4

Place Order