#include using namespace std; void copy (float[], float[], int); void output (float[], int); float avg ( float[], int ); int main() { float x[6] = {60,50,40,30,20,10}; float y[6] = {1,1,1,1,1,1}; copy (x, y, 6); output (y, 6); return 0; } void copy (float x[], float y[], int length) { for (int i = 0; i < length; i++) y[i] = x[i]; } void output (const float x[], int length) { for (int i = 0; i < length; i++) cout << x[i] << endl; } float avg (float y[], int length) { float a = 0; int b = 0; for (int i = 0; i < length; i++) { a = a + y[i]; b = i; } return a/b; }