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

Sure! Here's an example program in Python that reads 10 integer values into an array, calculates the total, and then prints the values.

```python
def read_values():
values = []
for i in range(10):
value = int(input("Enter an integer value: "))
values.append(value)
return values

def find_total(values):
total = sum(values)
return total

def print_values(values):
for value in values:
print(value)

# Main program
array = read_values()
total = find_total(array)
print("Total:", total)
print_values(array)
```

Explanation:
1. We start by defining three functions: `read_values`, `find_total`, and `print_values`.
2. The `read_values` function takes user input for 10 integer values and stores them in a list called `values`.
3. The `find_total` function calculates the sum of the elements in the `values` list using the built-in `sum` function and returns the total.
4. The `print_values` function iterates over each element in the `values` list and prints it.
5. In the main program, we call the `read_values` function to read the integer values into the `array` list.
6. We then call the `find_total` function with the `array` as input to calculate the total and store it in the `total` variable.
7. Finally, we print the total using the `print` function and call the `print_values` function to print the values in the array.