Question: roid setvalues (2?p): 1/ this method receives an integer array and its size as parameters int addValues (???); 11 this method receives an integer array

roid setvalues (2?p): 1/ this method receives an integer array and its size as parameters int addValues (???); 11 this method receives an integer array and its size as parameters int highest(??2): 1/ this method receives an integer array and its size as parameters int lowest(27?); / this method receives an integer array and its size as parameters Float average (???): 11 this method receives an integer array and its size as parameters oid printValues (222);; / this method receives an integer array and its size as parameters roid personalinfo(l): int main(){ 1/ declare an integer constant named SIZE and initialize to 7 // declare an intger array named values using the constant as the size I/ and initialize all elements to 0 II call the printValues method If call the setvalues method to populate the array 1/ call the printValues method If print the phrase "The highest value in the values array is [high], the lowest 1/ is [low], and the average of all values is [average]." Call the appropriate functions 1/ to obtain the highest, lowest, and average values. I/ call the personalinfo method system ("pause"); // For Visual studio only! return 0 ; // The setValues method receives an integer array and its size as parameters and has no /f return value. If uses the pseudo random number generator function to assign a value 1/ between 1 and 100 to every element of the array. Make sure to seed the pseudo random // number generator before calling the rand function. The only variable declared in this 1/ method is the counter used in the for iteration control structure. /1 The addValues method receives an integer array and its size as parameters and returns /f an integer value. Declare the local integer variable suma and initialize it to 0. 1/ The method implements a for iteration control structure to add all values in the array // and returns the sum. f/ The highest method receives an integer array and its size as paraneters and returns 11 an integer value. Declare the local integer variable high and initialize it to 0 . /f The method implements a for iteration control strueture to find out the highest of If al1 values in the array, and returns such value. // The lowest method recelven an integer array and its size as parametern and returns 1/ an integer value. Declare the Local integer variable low and initialize it to 0. 1/ The method implements a for ftecation control structure to find out the lowest of If a11 yalues in the array, and returns such value. 1. The average method receives an integer array and ita size as parametera and returna If a float value. Declare the local float variable auma and initialize it to o. 11 The method implements a for iteration control strueture to add all values in the array If and returna the average. If The printValues method receiven an integer array and its aine as parametern and han no 1f return value. It printe the contents of the array using the phrase If "The values stored in the array ares [tirst value], .... [last value]." 11 Uee a for iteration control strueture to print the valued, making aure that a conma and 1f a apace are printed after al1 but the last values. M period and the end of 1 ine instruetion 1/ must be printed after the last value. Make aure to add a blank line after the phrase in printed. 11. The peraonalinfo method prints a statement with your personal information uning (1. the phrase "... Program developed by [Youk MaME], TDe [Youk TD NUMaER] ***" 1f where the aquare bracketa and the text within in subatituted with your personal. 1f. information. Make sure to add a blank 1 ine after the phrase is printed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
