Our teacher was always on leave and so she doesn't teach us about java programming. She always leave a problem to us without even knowing how to deal with that kind of problem and what codes should we use for it.

Here's the problem I hope you can help me.

1. Write a program that would store the square of the first 7 even numbers (2, 4, 6, 8, 10, 12, 14) into array with 7 elements. Program must then display all the array elements together with its sum.

2. Barney has 10 children. Write a program that would enter the age of his 10 children into an array with 10 elements. The age of his youngest child will go into the 1st element and so on with the age of the oldest child going into the last element. Program must then display the following:

a. age of all his children form the oldest to the youngest.

b. The average age

c. Count of all teenagers (teenagers are from age 13 – 19, inclusive)

d. Count of all adults (adults are age 20 and above)