QUESTIONS Suppose you have a 20 array of int value named autonomo medio Assume that almants of at have been initiated to random inte intuito CL) You want to write a function to determine the average, minimum, and maximum value in rete Howwer the women • All values in the perimeter of results are invalid and should be excluded from the verge, minimum ad mumcon Fortuin, the located in row 0, POW ROWS-1 column 0 and column COLS- • To double the aven-ness of the array, all odd values should be doubled before performing the verge, minimum ad imum • You may assume that there will always be at least one vald value in the results array That way is not necessary to choose where we mwing by Example Case: Suppose results has 4 301 rows, 3 columns (do not o 15 assume we always have 1 2 3 4 rows and 3 columns) 45 6 1. Elements in the perimeter are invalid and excluded. 30 . + 4 2 5 6 2. Valid, odd values are doubled prior to calculating average, min and max (here, the value 3 was doubled to 6) . 5 a o . 4 o 6 2 me and Submit to save and submit. Click Save All Answers to some all ansters MacBook Pro & A $ 8 9 % 5 7 6 4
leanu 1. Elements in the perimeter valid andere 2 2. Valitodd values are doubled prior to calculating verace, min and max there, the value was doubled to a + 2 3. Average minimum and Average 4 maximum value are Minimum value 2 calculated using the valid Maximus values values In the space below, complete the function definition for the function calekvatn. This function determines the average minimum, maximum van de clowing the lo requirements You may assume that RONS, COLs and results own COLO) are already initialized. Be sure to use proper Cyntax Use the below startede for your action void cale Ave Max Mantin NCOLS, int mow) your code here Monitut rsini to screen cout Avenge average <<endl; coute "Minim vec mincendi cout<<"Maximum value <<max <<endl; > X P For the toolbar, press ALT F10 (PC) or ALTFNF10 (Mac), Arial 10pt
QUESTIONS Suppose you have a 20 array of int value named autonomo medio Assume that almants of at have been initiated to
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
QUESTIONS Suppose you have a 20 array of int value named autonomo medio Assume that almants of at have been initiated to
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!