Can anyone help with a program that would allow you to enter 5 floating point values into an array called Marks and then calculate and displays the average of the marks entered?

Also need help with a second program that manipulates an array of 7 integers according to the following rules:

first element is 32, last element is 87 with the second element being one more that of the last element. The second last element is 10 less than the first element and the 4th element is the sum of the first two and the last two elements, and the 3rd and the 5th elements are both zero.

Can anyone help me out with these and explain how it would work. Thanks