My computer just crashed and I lost my files, I have this program due tomorrow, if anyone could solve and show the code that'd be great.
Problem below:------------------------------------------------
Write a function, named sums(), that has two input parameters; an array, called Input of doubles; and an integer which is the number of values stored in the array. Compute the sum of the positive values in the array and the sum of the negative values. Also count the number of values in each category. Return these four answers through output parameters. Write a main program that reads no more than 10 real numbers and stores them in an array. Stop reading numbers when a 0 is entered. Call the sums() function and print the answers it returns. Also compute and print the average values of the positive and negative sets. Align decimal points on numbers
SAMPLE INPUT:
-123.45
-234.56
576.1
-9.345
675.2
100
-10
1654.45
765.89
0 (NOT in computation)
SAMPLE OUTPUT:
YourName Program#1 CS110
Input Read:
9999.9999
9999.9999
...
Statistics:
Desc Number Total: Average:
Positive 99 99999.9999 9999.9999
Negative 99 99999.9999 9999.9999
Overall 99 99999.9999 9999.9999