write a program that can read 10 interger values into an array and find the total for that array in the program , write 3 fiunctions: a function to read values , a function to find the total of element value and a function to print value

To write a program that takes 10 integer values as input, stores them in an array, finds the total of the array, and prints the values, you can use the following steps:

1. Define an array of integers with a size of 10 to store the input values.
2. Implement a function to read the values and store them in the array. Let's call this function "readValues."
3. Implement a function to calculate the total of all the elements in the array. Let's call this function "findTotal."
4. Implement a function to print the values of the array. Let's call this function "printValues."

Here's an example program in C++ that demonstrates these steps:

```cpp
#include <iostream>

const int ARRAY_SIZE = 10; // Size of the array

// Function to read values and store them in the array
void readValues(int arr[]) {
std::cout << "Enter 10 integer values:\n";
for (int i = 0; i < ARRAY_SIZE; i++) {
std::cin >> arr[i];
}
}

// Function to find the total of all the elements in the array
int findTotal(int arr[]) {
int total = 0;
for (int i = 0; i < ARRAY_SIZE; i++) {
total += arr[i];
}
return total;
}

// Function to print the values of the array
void printValues(int arr[]) {
std::cout << "Values in the array:\n";
for (int i = 0; i < ARRAY_SIZE; i++) {
std::cout << arr[i] << " ";
}
std::cout << std::endl;
}

int main() {
int values[ARRAY_SIZE];

readValues(values);
int total = findTotal(values);
printValues(values);

std::cout << "Total of the array: " << total << std::endl;

return 0;
}
```

In this example, the `main` function initializes an array of integers called `values`. It then calls the `readValues` function to read the values from the user and store them in the `values` array. After that, it calls the `findTotal` function to calculate the total of the array. Finally, it calls the `printValues` function to display the values in the array, and prints the total of the array.

Note: Remember to include the necessary header files and compile the program before running it.