Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Develop a program to meet the following requirements: Must use at least two func

ID: 3612250 • Letter: D

Question

Develop a program to meet the following requirements: Must use at least two functions, not including Main Must use indirection (the * operator) Must use a loop Must use an array to hold the integers Must take the integer inputs from a file Your assignment is to take ten integers as input from a file, store them in an array and then: output the largest calculate the average value of all ten integers, output as float output the contents of your array of integers in order, first to last Use the following integers: 318 34 18 87 472 809 70 33 51 719 Hints: Use your text editor (the same one you use to input your source code) to create your data file, one integer per line. You can either read the file until you hit EOF, or just read 10 integers

Explanation / Answer

Hi there, some thing along the lines of: Number readerLoaded data318 34 18 87 472 809 70 33 51 719 Largest number809Average261.1#include #include #include #define kMaxNumbers 10#define kNumbersFilename "../../numbers.txt"using namespace std;int largest(int *array, int sizeArray) { int largest = 0; for(int i = 0; i largest) { largest = array[i]; } }; return largest;}float average(int *array, int sizeArray) { int sum = 0; for(int i = 0; i