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

I have some errors on my program and im having deficulty with few conversions an

ID: 3855263 • Letter: I

Question

I have some errors on my program and im having deficulty with few conversions and other things here is my source code and its header file.
the client.cpp
#include "Client.h"
#include "ClientList.h"
# include <fstream>
# include <string>
# include <iostream>
using namespace std;
Client::Client()
{
numInterests = 0;
}
void Client::SetSex(char gender)
{
sex = gender;
}
void Client::SetName(string n)
{
name = n;
}
void Client::SetPhone(string p)
{
phone = p;
}
void Client::SetInterest(string[], int i)
{

for (int index = 0; index < 10; index++)
  interests[index] = i;
}
bool Client::SetMatchClient(Client& otherClient)
{
int index = 0, length = 10;
bool found = false;
while (index < length && !found)
{
  if (interests[index] == otherClient.interests[index])
  {
   found = true;
   matched = otherClient.GetName();
   numInterests++;
   otherClient.matched = name;
   otherClient.numInterests++;
  }
  index++;-
}
return found;
}
void Client::SetMatch(string& m)
{
match = m;
}
void Client::CompareTo(Client otherClient)
{
if (name < otherClient.name)
  return LESS;
else if (name > otherClient.name)
  return GREATER;
else
  return EQUAL;
}
string Client::getClientDesc() const
{
string desc;
desc = name + " " + sex + " " + phone;
return desc;
}
int Client::getNumInterest() const
{
return numInterests;
}
string Client::getMatch() const
{
return match;
}
char Client::GetSex()
{
return sex;
}
string Client::GetName()
{
return name;
}
string Client::GetPhone()
{
return phone;
}
client.h
//Header file for Client cless

//***************************************************************************************************
#ifndef CLIENT_H
#define CLIENT_H
#include <fstream>
#include <string>
#include <iostream>
using namespace std;
class Client
{
//Private members
private:
enum Gender {male, female};
enum Equalization {LESS, GREATER, EQUAL};
static const int MAX_INTERESTS = 10;
char sex;
string name;
string phone;
string interests[MAX_INTERESTS];
int numInterests;
bool matched;
string match;
//Public members and functions
public:
//Constructor
Client();
//Mutators
void SetName(string);
void SetSex(char);
void SetPhone(string);
void SetInterest(string[], int);
bool SetMatchClient(Client&);
void SetMatch(string&);
void CompareTo(Client);
string getClientDesc()const;
int getNumInterest() const;
string getMatch() const;
//Accessors
char GetSex();
string GetPhone();
string GetName();
};
#endif
Thank you for any help i have till midnight central time.

Explanation / Answer

#include "Client.h"
#include "ClientList.h"
# include <fstream>
# include <string>
# include <iostream>
using namespace std;
Client::Client()
{
numInterests = 0;
}
void Client::SetSex(char gender)
{
sex = gender;
}
void Client::SetName(string n)
{
name = n;
}
void Client::SetPhone(string p)
{
phone = p;
}
void Client::SetInterest(string[], int i)
{

for (int index = 0; index < 10; index++)
  interests[index] = i;
}
bool Client::SetMatchClient(Client& otherClient)
{
int index = 0, length = 10;
bool found = false;
while (index < length && !found)
{
  if (interests[index] == otherClient.interests[index])
  {
   found = true;
   matched = otherClient.GetName();
   numInterests++;
   otherClient.matched = name;
   otherClient.numInterests++;
  }
  index++;-
}
return found;
}
void Client::SetMatch(string& m)
{
match = m;
}
void Client::CompareTo(Client otherClient)
{
if (name < otherClient.name)
  return LESS;
else if (name > otherClient.name)
  return GREATER;
else
  return EQUAL;
}
string Client::getClientDesc() const
{
string desc;
desc = name + " " + sex + " " + phone;
return desc;
}
int Client::getNumInterest() const
{
return numInterests;
}
string Client::getMatch() const
{
return match;
}
char Client::GetSex()
{
return sex;
}
string Client::GetName()
{
return name;
}
string Client::GetPhone()
{
return phone;
}
client.h
//Header file for Client cless

//***************************************************************************************************
#ifndef CLIENT_H
#define CLIENT_H
#include <fstream>
#include <string>
#include <iostream>
using namespace std;
class Client
{
//Private members
private:
enum Gender {male, female};
enum Equalization {LESS, GREATER, EQUAL};
static const int MAX_INTERESTS = 10;
char sex;
string name;
string phone;
string interests[MAX_INTERESTS];
int numInterests;
bool matched;
string match;
//Public members and functions
public:
//Constructor
Client();
//Mutators
void SetName(string);
void SetSex(char);
void SetPhone(string);
void SetInterest(string[], int);
bool SetMatchClient(Client&);
void SetMatch(string&);
void CompareTo(Client);
string getClientDesc()const;
int getNumInterest() const;
string getMatch() const;
//Accessors
char GetSex();
string GetPhone();
string GetName();
};
#endif

where is header file for clientlist.h

remove that from .cc file and run