Question: Full credits will be given for successful compilation, and running the code with multiple sets of data, and copying and pasting the results with the
Full credits will be given for successful compilation, and running the code with multiple sets of data, and copying and pasting the results with the source code. Please do not submit the repl link only, you must give the complete source code listing. Any copying from fellow classmates will result in 0 credit. Write a program that uses the following two functions to compute average of a set of data. float Average(int num[ ], int n); void Average(int num[ ], int n, float & average); Both functions are capable of computing the average. You need to call one function at a time from main, and display the average value. The array must be declared dynamically and provide the values as input to the program. [Use the sample code given in lecture notes, you have to modify somewhat] Put comment statements in your program, to explain important steps, and also to display your name, course number (CS 425) and today's date
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
