Question: i need help finishing my code using putty, here are my error codes and instructions for this code. #include #include #include #include using namespace std;
i need help finishing my code using putty, here are my error codes and instructions for this code.


![std; // function prototypes void readArray(int A[], int size); void copyArray(int A[],](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f30f7c75da9_24366f30f7bce588.jpg)
#include
#include
#include
#include
using namespace std;
// function prototypes
void readArray(int A[], int size);
void copyArray(int A[], int B[], int size);
void printArray(int arr[], int size);
int findCountInRange(int arr[], int size);
int findCountDivisibleByFive(int arr[], int size);
void printIndicesDivisibleByFive(int arr[], int size);
float findAverage(int arr[], int size);
int findMaximum(int arr[], int size);
bool searchKey(int key, int arr[], int size);
int main()
{
const int MAX_SIZE = 10;
int A[MAX_SIZE];
int B[MAX_SIZE];
int key;
readArray(A, MAX_SIZE);
copyArray(A, B, MAX_SIZE);
cout
printArray(A, MAX_SIZE);
cout
printArray(B, MAX_SIZE);
cout = 80 and
cout
cout
printIndicesDivisibleByFive(A, MAX_SIZE);
cout
cout
cout
cin >> key;
if(searchKey(key, A, MAX_SIZE))
cout
else
cout
cout
system("pause");
return 0;
}
// readArray function implementaion
void readArray(int A[], int size)
{
string filename = "data.txt";
ifstream file(data.txt);
int n;
int count = 0;
infile >> n;
while(infile && count
{
A[count] = n;
count++;
infile >> n;
}
}
// copyArray function implementaion
void copyArray(int A[], int B[], int size)
{
int j = 0;
for(int i = size - 1; i >= 0; i--)
{
B[j] = A[i];
j++;
}
}
// printArray function implementaion
void printArray(int arr[], int size)
{
for(int i = 0; i
cout
cout
}
// findCountInRange function implementaion
int findCountInRange(int arr[], int size)
{
int count = 0;
for(int i = 0; i
{
if(arr[i] >= 80 && arr[i]
count++;
}
return count;
}
// findCountDivisibleByFive function implementaion
int findCountDivisibleByFive(int arr[], int size)
{
int count = 0;
for(int i = 0; i
{
if(arr[i] % 5 == 0)
count++;
}
return count;
}
// printIndicesDivisibleByFive function implementaion
void printIndicesDivisibleByFive(int arr[], int size)
{
for(int i = 0; i
{
if(arr[i] % 5 == 0)
cout
}
cout
}
// findAverage function implementaion
float findAverage(int arr[], int size)
{
float sum = 0;
for(int i = 0; i
sum += arr[i];
return sum / size;
}
// findMaximum function implementaion
int findMaximum(int arr[], int size)
{
int max = arr[0];
for(int i = 1; i
{
if(arr[i] > max)
max = arr[i];
}
return max;
}
// searchKey function implementaion
bool searchKey(int key, int arr[], int size)
{
for(int i = 0; i
{
if(arr[i] == key)
return true;
}
return false;
}
program3.cpp: 32:47: error 'findCountDivisibleByFive' was not decl ared in this scope >n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
