I think I've resolved it. Here is the assignment:

Write a program that takes five numbers from the user and calls the following functions:

isEqual5() - determines if the 5 numbers are all identical.

isEqual4() - determines if any 4 numbers are identical.

isEqual3() - determines if any 3 numbers are identical.

No sorting is allowed in any of these functions including the main.

All comparisons must be performed within the functions that return answers, true or false.

The input and output must remain in the main function

And here is what I got:

**Code:**

#include <iostream>

using namespace std;

//prototype functions for each event

bool isEqual5(int,int,int,int,int);

bool isEqual4(int,int,int,int,int);

bool isEqual3(int,int,int,int,int);

int main()

{

//initialize variables

int n1,n2,n3,n4,n5;

bool three,four,five;

cout<<"Please enter five numbers."<<endl;

cin>>n1>>n2>>n3>>n4>>n5;

//function calls with variable assignments

five=isEqual5(n1,n2,n3,n4,n5);

four=isEqual4(n1,n2,n3,n4,n5);

three=isEqual3(n1,n2,n3,n4,n5);

//output statements for true functions

if (five==1)

cout<<"There are five matching numbers.";

else if (four==1)

cout<<"There are four matching numbers.";

else if (three==1)

cout<<"There are three matching numbers.";

system("pause");

return 0;

}

//comparison function for instance of five equal numbers

bool isEqual5(int x1,int x2, int x3,int x4,int x5){

int a=0;

if(x1==x2||x1==x3||x1==x4||x1==x5)

a=a+1;

if(x2==x1||x2==x3||x2==x4||x2==x5)

a=a+1;

if(x3==x1||x3==x2||x3==x4||x3==x5)

a=a+1;

if(x4==x1||x4==x2||x4==x3||x4==x5)

a=a+1;

if(x5==x1||x5==x2||x5==x3||x5==x4)

a=a+1;

if (a==5)

return true;

else

return false;

}

//comparison function for instance of four equal numbers

bool isEqual4(int x1,int x2, int x3,int x4,int x5){

int a=0;

if(x1==x2||x1==x3||x1==x4||x1==x5)

a=a+1;

if(x2==x1||x2==x3||x2==x4||x2==x5)

a=a+1;

if(x3==x1||x3==x2||x3==x4||x3==x5)

a=a+1;

if(x4==x1||x4==x2||x4==x3||x4==x5)

a=a+1;

if(x5==x1||x5==x2||x5==x3||x5==x4)

a=a+1;

if (a==4)

return true;

else

return false;

}

//comparison function for instance of three equal numbers

bool isEqual3(int x1,int x2, int x3,int x4,int x5){

int a=0;

if(x1==x2||x1==x3||x1==x4||x1==x5)

a=a+1;

if(x2==x1||x2==x3||x2==x4||x2==x5)

a=a+1;

if(x3==x1||x3==x2||x3==x4||x3==x5)

a=a+1;

if(x4==x1||x4==x2||x4==x3||x4==x5)

a=a+1;

if(x5==x1||x5==x2||x5==x3||x5==x4)

a=a+1;

if (a==3)

return true;

else

return false;

}

You think that solves the problem?