plz solve this

Write a C++ program that contains the following:
1. Function that reads an array of 5 integers using rand function in range [50,100]
2. Function to print array’s elements
3. Function to find max element in the array
4. Function to add random value in range [2,5] to all elements in the array
5. Function to calculate summation for all arrays’ elements and print the final summation.
solve it :)

This is not a homework service. We will help you with your assignments, but we will not do them for you. Try attempting it yourself and then ask about things you get stuck on.
Topic archived. No new replies allowed.