Im having trouble writing a program that uses functions the


Im having trouble writing a program that uses functions. the program uses data from a data file ("numbers.dat") and is to be written to an output file ("output2.dat"). i have already written an array based program that does what it is supposed to, now i need a function based program to do the same. i have attached a copy of my current array program. the new function program should do the following

1) print out all values in the array with no more than 5 numbers per output line

2) print out average of numbers

3) print out how many numbers are larger than the average

4) print out how many numbers are smaller than the average

5) for every odd location in the array, subtract it from the previous even location and print out values

6) print out average of new array

7) convert every negative numbers to positive numbers. print out array

8) swap the first number in array with the last number in the array and print.

9) print out average for the new array.

Attachment:- my+array+prgrm2.zip

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Im having trouble writing a program that uses functions the
Reference No:- TGS01246873

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)