Question: CTION III: Programming Question (100 marks) a correct and complete C++ program that reads an unknown number (no more than 1000) of integer values from

 CTION III: Programming Question (100 marks) a correct and complete C++

CTION III: Programming Question (100 marks) a correct and complete C++ program that reads an unknown number (no more than 1000) of integer values from the text file, named InData.txt", and performs four calculations: calculating e average, find the largest and smallest numbers, reverse the order of the numbers in the array and print array. in aclat The main function should call sub-functions to perform the above calculations. A set of fun prototypes are suggested below. // Read data from an input file: This function will read integers from the input file (inFile) and // store them into the array dataList. ! It returns an integer value that is the actual number integers stored in the array. int readData (ifstream inFile, int dataList ) // Calculating the arrage. / Parameters: list[]- array storing integer data; n- actual number of integers // return: the calculated average double calAvg( const int& listl 1, int n) // Find the largest and smallest values. // Parameters: list]- array storing integer data, n - actual number of integers max - storing the largest value, min - storing the smallest value void findMaxMin const int& 1ist , int n, int& max, int& min) : // Reverse the order of integers. // Parameters: list- original array, revList - reversed array void revArray const int& list , int& revlistl, int n) // Print array: void printArray( const int& list , int n) [You may redefine function prototypes based on your own preference. Implementation of all functions is required.]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!