Question: #include #include #include using namespace std; const int MAXCLIENTS = 1 0 ; float L [ MAXCLIENTS ] , W [ MAXCLIENTS ] ; /

#include
#include
#include
using namespace std;
const int MAXCLIENTS=10;
float L[MAXCLIENTS],W[MAXCLIENTS]; // access each apartment using []
string name[MAXCLIENTS];
string getName(){
string name;
cout << "Please enter the client's name" <> name;
return name;
}
float getWins(){
float Wgw=0;
while (!(/*valid rage*/0<=Wgw && Wgw<=50)){
cout << "Please Enter Wins valid range 0<=W<=50"<< endl;
cin >> Wgw;
}
return Wgw;
}
float getLosses(){
float Lgl=0;
while (!(0<=Lgl && Lgl<=50)){
cout << "Please Enter Losses in valid range 0<=L<=50"<> Lgl;
}
return Lgl;
}
int whichClient(){
int index=-1;
while(!(index>=0 && index> index;
}
return index;
}
void reportRank(float L,float W){
float Rank;
Rank=W/(L+W);
//cout << setw(40)<< setfill('-')<<'-'<> answer;
if (answer<=0|| answer>5) again=false;
if (answer==1){
int i=whichClient();
L[i]=getLosses();
}
if (answer==2){
int i=whichClient();
W[i]=getWins();
}
if (answer==4){
int i=whichClient();
name[i]=getName();
L[i]=getLosses();
W[i]=getWins();
}
if (answer==5){
int i=whichClient();
name[i]=getName();
}
if (answer==3){
for(int i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!