[Part 1: C Array example] C++ Create two overloaded methods that return the average of an array with the following prototypes: int average(const int[] , int ); double average(const double[] , int);...


[Part 1: C Array example] C++<br>Create two overloaded methods that return the<br>average of an array with the following prototypes:<br>int average(const int[] , int );<br>double average(const double[] , int);<br>Write a driver program that randomly generates ten<br>integers between 0- 100, and ten double values<br>with 2 decimal digits between 0 โ€“ 50. (Use srand<br>and rand to get array element values. )<br>You may add the following functions to generate<br>random numbers:<br>void intArrayGenerator(int[], int size, int low, int<br>high);<br>void doubleArrayGenerator(double[], int size, int<br>low, int high);<br>Invokes both functions, and displays all values and<br>the average values. (All double numbers will be<br>displayed with two-digit decimal places.) Each line<br>displayed each element from both arrays.<br>[Part 2: Using C++ Array]<br>Peer Discussion:<br>The function prototypes provided are for C Array,<br>how will you modify them for C++ Array? Rewrite all<br>functions with C++ array and test all of them.<br>

Extracted text: [Part 1: C Array example] C++ Create two overloaded methods that return the average of an array with the following prototypes: int average(const int[] , int ); double average(const double[] , int); Write a driver program that randomly generates ten integers between 0- 100, and ten double values with 2 decimal digits between 0 โ€“ 50. (Use srand and rand to get array element values. ) You may add the following functions to generate random numbers: void intArrayGenerator(int[], int size, int low, int high); void doubleArrayGenerator(double[], int size, int low, int high); Invokes both functions, and displays all values and the average values. (All double numbers will be displayed with two-digit decimal places.) Each line displayed each element from both arrays. [Part 2: Using C++ Array] Peer Discussion: The function prototypes provided are for C Array, how will you modify them for C++ Array? Rewrite all functions with C++ array and test all of them.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here