/Please Fix this probem. #include #include Class Soccer { Int g_no, no_assist, no_goal; Public : soccer () { j_no=0; No_assist=0; No_goal=0; } Void read () { Cout<<”Enter the player information (no of jersey, no of goals and no of assists):”; Cin>>j_no>>no_goal>>no_assist; } void display () { Cout<<”The information of best scorer player is :” Cout<<”Jersery no of player:”<(Soccer P) { Soccer temp; If((no_assist + no_goals )>(y.no_assist + y.no_goals)) { Temp.j_no=j_no; Temp.no_assist=no_assist; Temp.no_goal=no_goal; } Else { Temp.j_no=j_no; Temp.no_assist=y.no_assist; Temp.no_goal=y.no_goal; } Return(temp); } Void main () { Soccer P[11],L; Int I; For(i=0;i<=11;i++) { P[i].read(); } L=p[0]; For(i=1;i<=11;i++) { L=L>P[i]; } L.display(); getch(); }

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

//Please Fix this probem.

#include <iostream.h>

#include<conio.h>

Class Soccer

{

Int g_no, no_assist, no_goal;

Public :

soccer ()

{

j_no=0;

No_assist=0;

No_goal=0;

}

Void read ()

{

Cout<<”Enter the player information (no of jersey, no of goals and no of assists):”;

Cin>>j_no>>no_goal>>no_assist;

}

void display ()

{

Cout<<”The information of best scorer player is :”

Cout<<”Jersery no of player:”<<j_no;

Cout<<”No of goals :”<<no_goal;

Cout<<”No of assists :”<<no_assist;

}

Soccer operator >(Soccer P)

{

Soccer temp;

If((no_assist + no_goals )>(y.no_assist + y.no_goals))

{

Temp.j_no=j_no;

Temp.no_assist=no_assist;

Temp.no_goal=no_goal;

}

Else

{

Temp.j_no=j_no;

Temp.no_assist=y.no_assist;

Temp.no_goal=y.no_goal;

}

Return(temp);

}

Void main ()

{

Soccer P[11],L;

Int I;

For(i=0;i<=11;i++)

{

P[i].read();

}

L=p[0];

For(i=1;i<=11;i++)

{

L=L>P[i]; }

L.display();

getch(); }

 

#include <iostream.h>
If(no_assist + no_goals )>(y.no_assist + y.no_goals))
#include<conio.h>
{
Class Soccer
Temp.j_no=j_no;
{
Temp.no_assist=no_assist;
Int g_no, no_assist, no_goal;
Temp.no_goal=no_goal;
Public :
}
soccer ()
Else
{
{
j_no=0;
Temp.j_no=j_no;
No_assist=0;
Temp.no_assist=y.no_assist;
No goal=0;
Temp.no_goal=y.no_goal;
}
}
Void read ()
Return(temp);
{
}
Cout<<"Enter the player information (no of jersey, no of goals and no of
assists):";
Void mair
{
Cin>>j_no>>no_goal>>no_assist;
Soccer P[11],L;
}
Int I;
void display ()
For(i=0;i<=11;i++)
{
{
Cout<<"The information of best scorer player is :"
P[i].read0;
Cout<<"Jersery no of player:"<<j_no;
}
Cout<<"No of goals :"<<no_goal;
L=p[0]:
Cout<<"No of assists :"<<no_assist;
For(i=1;i<=11;i++)
}
{
Soccer operator >(Soccer P)
L=L>P[i]; }
{
L.display();
Soccer temp;
getch(); }
Transcribed Image Text:#include <iostream.h> If(no_assist + no_goals )>(y.no_assist + y.no_goals)) #include<conio.h> { Class Soccer Temp.j_no=j_no; { Temp.no_assist=no_assist; Int g_no, no_assist, no_goal; Temp.no_goal=no_goal; Public : } soccer () Else { { j_no=0; Temp.j_no=j_no; No_assist=0; Temp.no_assist=y.no_assist; No goal=0; Temp.no_goal=y.no_goal; } } Void read () Return(temp); { } Cout<<"Enter the player information (no of jersey, no of goals and no of assists):"; Void mair { Cin>>j_no>>no_goal>>no_assist; Soccer P[11],L; } Int I; void display () For(i=0;i<=11;i++) { { Cout<<"The information of best scorer player is :" P[i].read0; Cout<<"Jersery no of player:"<<j_no; } Cout<<"No of goals :"<<no_goal; L=p[0]: Cout<<"No of assists :"<<no_assist; For(i=1;i<=11;i++) } { Soccer operator >(Soccer P) L=L>P[i]; } { L.display(); Soccer temp; getch(); }
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY